[Carbon-commits] [Carbon] svn commit r116410 - trunk/carbon/core/org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/core/utils

janaka at wso2.com janaka at wso2.com
Tue Nov 29 03:54:03 EST 2011


Author: janaka
Date: Tue Nov 29 00:54:03 2011
New Revision: 116410
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=116410

Log:
Adding fix related to CARBON-11380


Modified:
   trunk/carbon/core/org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/core/utils/MediaTypesUtils.java

Modified: trunk/carbon/core/org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/core/utils/MediaTypesUtils.java
URL: http://wso2.org/svn/browse/wso2/trunk/carbon/core/org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/core/utils/MediaTypesUtils.java?rev=116410&r1=116409&r2=116410&view=diff
==============================================================================
--- trunk/carbon/core/org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/core/utils/MediaTypesUtils.java	(original)
+++ trunk/carbon/core/org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/core/utils/MediaTypesUtils.java	Tue Nov 29 00:54:03 2011
@@ -567,7 +567,7 @@
     }
 
     public static String getAllHumanTypes() {
-        String returnString = null;
+        String returnString = "";
 
         try {
             if (humanReadableMediaTypeMap == null) {
@@ -578,7 +578,7 @@
                 returnString = returnString + entry.getValue() + ":" + entry.getKey() + ",";
             }
 
-            if(returnString != null && returnString.endsWith(",")){
+            if(returnString.endsWith(",")){
                 returnString = returnString.substring(0,returnString.lastIndexOf(","));
             }
 


More information about the Carbon-commits mailing list