abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r422132 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/AbderaServlet.java
Date Sat, 15 Jul 2006 02:21:01 GMT
Author: rooneg
Date: Fri Jul 14 19:21:01 2006
New Revision: 422132

URL: http://svn.apache.org/viewvc?rev=422132&view=rev
Log:
Tweak formatting in AbderaServlet.

[ in server/src/main/java/org/apache/abdera/server/servlet ]

* AbderaServlet.java
  (AbderaServlet.doOutput): Make the 'space-before-paren' policy consistent
   throughout this method.

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/AbderaServlet.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/AbderaServlet.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/AbderaServlet.java?rev=422132&r1=422131&r2=422132&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/AbderaServlet.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/server/servlet/AbderaServlet.java
Fri Jul 14 19:21:01 2006
@@ -93,12 +93,12 @@
       // headers. If they want to skip the ones above, they simply
       // don't set them.
       Map<String, List<String>> headers = context.getHeaders();
-      if(headers != null) {
-        for(String header : headers.keySet()) {
+      if (headers != null) {
+        for (String header : headers.keySet()) {
           List<String> values = headers.get(header);
-          if(values == null) 
+          if (values == null) 
             continue;          
-          for(String value : values) {
+          for (String value : values) {
             response.setHeader(header, value);
           }
         }
@@ -107,8 +107,7 @@
       if (context.hasEntity())
         context.writeTo(response.getOutputStream());
     } else {
-      response.sendError(
-        HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
+      response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
     }
   }
   



Mime
View raw message