Author: vkumar
Date: Mon Dec  1 02:42:56 2008
New Revision: 722032

URL: http://svn.apache.org/viewvc?rev=722032&view=rev
Log:
Returning null, in-case no value defined  for any preference key.
Changes for TCK compliance

Modified:
    
portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-registry/src/main/java/org/apache/jetspeed/components/portletpreferences/DatabasePreference.java

Modified: 
portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-registry/src/main/java/org/apache/jetspeed/components/portletpreferences/DatabasePreference.java
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-registry/src/main/java/org/apache/jetspeed/components/portletpreferences/DatabasePreference.java?rev=722032&r1=722031&r2=722032&view=diff
==============================================================================
--- 
portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-registry/src/main/java/org/apache/jetspeed/components/portletpreferences/DatabasePreference.java
 (original)
+++ 
portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-registry/src/main/java/org/apache/jetspeed/components/portletpreferences/DatabasePreference.java
 Mon Dec  1 02:42:56 2008
@@ -130,12 +130,10 @@
     {
         // ensure initialized
         getPreferenceValues();
-        if (values.size() == 0)
+        if(values.size() == 0)
         {
-            String[] result = new String[1];
-            result[0] = null;
-            return result;
-            
+            // Making changes for TCK compliance
+                       return null;
         }
         String[] result = new String[values.size()];
         int index = 0;



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to