Remove some unnecessary code and fix an Eclipse warning
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 3 Sep 2010 18:47:29 +0000 (18:47 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 3 Sep 2010 18:47:29 +0000 (18:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@992413 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/bcel/classfile/SimpleElementValue.java

index 25b8a2e..d866193 100644 (file)
@@ -84,10 +84,10 @@ public class SimpleElementValue extends ElementValue
         case PRIMITIVE_BOOLEAN:
             ConstantInteger bo = (ConstantInteger) cpool.getConstant(
                     getIndex(), Constants.CONSTANT_Integer);
-            if (bo.getBytes() == 0)
+            if (bo.getBytes() == 0) {
                 return "false";
-            if (bo.getBytes() != 0)
-                return "true";
+            }
+            return "true";
         case STRING:
             ConstantUtf8 cu8 = (ConstantUtf8) cpool.getConstant(getIndex(),
                     Constants.CONSTANT_Utf8);