cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r648939 - in /cocoon/branches/BRANCH_2_1_X/src: blocks/portal/java/org/apache/cocoon/portlet/multipart/MultipartActionRequest.java java/org/apache/cocoon/servlet/multipart/MultipartHttpServletRequest.java
Date Thu, 17 Apr 2008 03:18:57 GMT
Author: joerg
Date: Wed Apr 16 20:18:56 2008
New Revision: 648939

URL: http://svn.apache.org/viewvc?rev=648939&view=rev
Log:
fix whitespace

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portlet/multipart/MultipartActionRequest.java
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/multipart/MultipartHttpServletRequest.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portlet/multipart/MultipartActionRequest.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portlet/multipart/MultipartActionRequest.java?rev=648939&r1=648938&r2=648939&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portlet/multipart/MultipartActionRequest.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/portlet/multipart/MultipartActionRequest.java
Wed Apr 16 20:18:56 2008
@@ -87,7 +87,7 @@
 
             if (result instanceof Vector) {
                 Vector v = (Vector) result;
-				if (v.size() == 1) {
+                if (v.size() == 1) {
                     return v.elementAt(0);
                 } else {
                     return v;
@@ -100,15 +100,15 @@
             String[] array = request.getParameterValues(name);
 
             if (array != null) {
-            	if (array.length == 1) {
-            		result = array[0];
-            	} else {
+                if (array.length == 1) {
+                    result = array[0];
+                } else {
                     Vector vec = new Vector();
                     for (int i = 0; i < array.length; i++) {
                         vec.addElement(array[i]);
                     }
                     result = vec;
-            	}
+                }
             }
         }
 
@@ -152,21 +152,21 @@
      * @param name
      */
     public String[] getParameterValues(String name) {
-    	// null check and so else path are just optimizations
+        // null check and so else path are just optimizations
         if (values != null) {
             Object value = get(name);
 
             if (value == null) {
-            	return null;
+                return null;
             } else if (value instanceof Vector) {
-            	Vector v = (Vector)value;
-            	String[] results = new String[v.size()];
-            	for (int i = 0; i < v.size(); i++) {
-            		results[i] = v.elementAt(i).toString();
-            	}
-            	return results;
+                Vector v = (Vector)value;
+                String[] results = new String[v.size()];
+                for (int i = 0; i < v.size(); i++) {
+                    results[i] = v.elementAt(i).toString();
+                }
+                return results;
             } else {
-            	return new String[]{value.toString()};
+                return new String[]{value.toString()};
             }
         } else {
             return request.getParameterValues(name);

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/multipart/MultipartHttpServletRequest.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/multipart/MultipartHttpServletRequest.java?rev=648939&r1=648938&r2=648939&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/multipart/MultipartHttpServletRequest.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/multipart/MultipartHttpServletRequest.java
Wed Apr 16 20:18:56 2008
@@ -85,22 +85,22 @@
 
             if (result instanceof Vector) {
                 Vector v = (Vector) result;
-				if (v.size() == 1) {
+                if (v.size() == 1) {
                     return v.elementAt(0);
                 }
-				return result;
+                return v;
             }
         } else {
             String[] array = request.getParameterValues(name);
 
             if (array != null) {
-            	if (array.length == 1) {
-            		result = array[0];
-            	} else {
-	                Vector vec = new Vector();
-	                for (int i = 0; i < array.length; i++) {
-	                    vec.addElement(array[i]);
-	                }
+                if (array.length == 1) {
+                    result = array[0];
+                } else {
+                    Vector vec = new Vector();
+                    for (int i = 0; i < array.length; i++) {
+                        vec.addElement(array[i]);
+                    }
                     result = vec;
                 }
             }
@@ -146,7 +146,7 @@
      * @param name
      */
     public String[] getParameterValues(String name) {
-    	// null check and so else path are just optimizations
+        // null check and so else path are just optimizations
         if (values != null) {
             Object value = get(name);
 
@@ -154,7 +154,7 @@
                 return null;
             } else if (value instanceof Vector) {
                 Vector v = (Vector)value;
-				String[] results = new String[v.size()];
+                String[] results = new String[v.size()];
                 for (int i = 0; i < v.size(); i++) {
                     results[i] = v.elementAt(i).toString();
                 }



Mime
View raw message