commons-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1125967&view=rev
Log:
removed unnecessary else clause

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

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java?rev=1125967&r1=1125966&r2=1125967&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java (original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java Sun May 22 13:56:56
2011
@@ -81,11 +81,8 @@ public abstract class OgnlOps
                             result = ( (Comparable) v1 ).compareTo( v2 );
                             break;
                         }
-                        else
-                        {
-                            throw new IllegalArgumentException( "invalid comparison: " +
v1.getClass().getName()
-                                + " and " + v2.getClass().getName() );
-                        }
+                        throw new IllegalArgumentException( "invalid comparison: " + v1.getClass().getName()
+                            + " and " + v2.getClass().getName() );
                     }
                     // else fall through
                 case FLOAT:



Mime
View raw message