struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1188968 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/ContainUtil.java
Date Tue, 25 Oct 2011 23:24:56 GMT
Author: mcucchiara
Date: Tue Oct 25 23:24:56 2011
New Revision: 1188968

URL: http://svn.apache.org/viewvc?rev=1188968&view=rev
Log:
Inline variable assignment

Modified:
    struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/ContainUtil.java

Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/ContainUtil.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/ContainUtil.java?rev=1188968&r1=1188967&r2=1188968&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/ContainUtil.java (original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/ContainUtil.java Tue Oct
25 23:24:56 2011
@@ -87,8 +87,7 @@ public class ContainUtil {
             }
         } else if (obj1.getClass().isArray()) {
             for (int i = 0; i < Array.getLength(obj1); i++) {
-                Object value = null;
-                value = Array.get(obj1, i);
+                Object value = Array.get(obj1, i);
 
                 if (obj2.equals(value)) {
                     //log.debug("obj1 is an array and contains obj2");



Mime
View raw message