abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1190679 [3/3] - in /abdera/abdera2: activities/src/main/java/org/apache/abdera2/activities/model/ activities/src/main/java/org/apache/abdera2/activities/protocol/ activities/src/main/java/org/apache/abdera2/activities/protocol/basic/ activ...
Date Fri, 28 Oct 2011 23:44:37 GMT
Modified: abdera/abdera2/test/src/main/java/org/apache/abdera2/test/server/multipart/MultipartRelatedAdapter.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/test/src/main/java/org/apache/abdera2/test/server/multipart/MultipartRelatedAdapter.java?rev=1190679&r1=1190678&r2=1190679&view=diff
==============================================================================
--- abdera/abdera2/test/src/main/java/org/apache/abdera2/test/server/multipart/MultipartRelatedAdapter.java
(original)
+++ abdera/abdera2/test/src/main/java/org/apache/abdera2/test/server/multipart/MultipartRelatedAdapter.java
Fri Oct 28 23:44:35 2011
@@ -71,15 +71,13 @@ public class MultipartRelatedAdapter 
 
     @SuppressWarnings("serial")
     public Map<String, String> getAlternateAccepts(RequestContext request) {
-        if (accepts == null) {
-            accepts = new HashMap<String, String>() {
-                {
-                    put("video/*", null); /* doesn't accept multipart related */
-                    put("image/jpg", ""); /* doesn't accept multipart related */
-                    put("image/png", Constants.LN_ALTERNATE_MULTIPART_RELATED /* multipart-related
*/);
-                }
-            };
-        }
-        return accepts;
+      if (accepts == null) {
+        accepts = new HashMap<String, String>() {{
+          put("video/*", null); /* doesn't accept multipart related */
+          put("image/jpg", ""); /* doesn't accept multipart related */
+          put("image/png", Constants.LN_ALTERNATE_MULTIPART_RELATED /* multipart-related
*/);
+        }};
+      }
+      return accepts;
     }
 }



Mime
View raw message