clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1465090 - /clerezza/trunk/platform.xhtml2html/src/main/java/org/apache/clerezza/platform/xhtml2html/MediaType.java
Date Fri, 05 Apr 2013 18:37:56 GMT
Author: reto
Date: Fri Apr  5 18:37:55 2013
New Revision: 1465090

URL: http://svn.apache.org/r1465090
Log:
CLEREZZA-766: MediaType getParamter method now returns empty map instead of null

Modified:
    clerezza/trunk/platform.xhtml2html/src/main/java/org/apache/clerezza/platform/xhtml2html/MediaType.java

Modified: clerezza/trunk/platform.xhtml2html/src/main/java/org/apache/clerezza/platform/xhtml2html/MediaType.java
URL: http://svn.apache.org/viewvc/clerezza/trunk/platform.xhtml2html/src/main/java/org/apache/clerezza/platform/xhtml2html/MediaType.java?rev=1465090&r1=1465089&r2=1465090&view=diff
==============================================================================
--- clerezza/trunk/platform.xhtml2html/src/main/java/org/apache/clerezza/platform/xhtml2html/MediaType.java
(original)
+++ clerezza/trunk/platform.xhtml2html/src/main/java/org/apache/clerezza/platform/xhtml2html/MediaType.java
Fri Apr  5 18:37:55 2013
@@ -15,6 +15,7 @@
  */
 package org.apache.clerezza.platform.xhtml2html;
 
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -59,7 +60,7 @@ public class MediaType {
     }
 
     Map<String,String> getParameters() {
-        return parameters;
+        return parameters == null? Collections.EMPTY_MAP : parameters;
     }
 
     String getType() {



Mime
View raw message