commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1126256 - /incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
Date Sun, 22 May 2011 22:37:55 GMT
Author: simonetripodi
Date: Sun May 22 22:37:55 2011
New Revision: 1126256

URL: http://svn.apache.org/viewvc?rev=1126256&view=rev
Log:
added missing {} blocks

Modified:
    incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java?rev=1126256&r1=1126255&r2=1126256&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java (original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java Sun May 22
22:37:55 2011
@@ -2845,9 +2845,13 @@ public class OgnlRuntime
                 {
 
                     if ( numParms > 0 && methods[i].getMethod().getParameterTypes().length
== numParms )
+                    {
                         return methods[i].getMethod();
+                    }
                     else if ( numParms < 0 )
+                    {
                         return methods[i].getMethod();
+                    }
                 }
             }
 
@@ -2857,7 +2861,9 @@ public class OgnlRuntime
             for ( int i = 0; i < cmethods.length; i++ )
             {
                 if ( !isMethodCallable( cmethods[i] ) )
+                {
                     continue;
+                }
 
                 if ( ( cmethods[i].getName().equalsIgnoreCase( name )
                     || cmethods[i].getName().toLowerCase().equals( name.toLowerCase() ) ||
cmethods[i].getName().toLowerCase().equals( "set"
@@ -2866,9 +2872,13 @@ public class OgnlRuntime
                 {
 
                     if ( numParms > 0 && cmethods[i].getParameterTypes().length
== numParms )
+                    {
                         return cmethods[i];
+                    }
                     else if ( numParms < 0 )
+                    {
                         return cmethods[i];
+                    }
                 }
             }
 



Mime
View raw message