commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1606492 - /commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java
Date Sun, 29 Jun 2014 12:19:33 GMT
Author: ggregory
Date: Sun Jun 29 12:19:32 2014
New Revision: 1606492

URL: http://svn.apache.org/r1606492
Log:
Statement unnecessarily nested within else clause.

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java?rev=1606492&r1=1606491&r2=1606492&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java
Sun Jun 29 12:19:32 2014
@@ -183,9 +183,8 @@ public class SimpleElementValue extends 
                     getIndex(), Constants.CONSTANT_Integer);
             if (bo.getBytes() == 0) {
                 return "false";
-            } else {
-                return "true";
             }
+            return "true";
         case STRING:
             ConstantUtf8 cu8 = (ConstantUtf8) cpool.getConstant(getIndex(),
                     Constants.CONSTANT_Utf8);



Mime
View raw message