Author: markt
Date: Fri Sep  3 18:47:29 2010
New Revision: 992413

URL: http://svn.apache.org/viewvc?rev=992413&view=rev
Log:
Remove some unnecessary code and fix an Eclipse warning

Modified:
    
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/SimpleElementValue.java

Modified: 
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/SimpleElementValue.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/SimpleElementValue.java?rev=992413&r1=992412&r2=992413&view=diff
==============================================================================
--- 
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/SimpleElementValue.java 
(original)
+++ 
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/SimpleElementValue.java 
Fri Sep  3 18:47:29 2010
@@ -84,10 +84,10 @@ public class SimpleElementValue extends 
         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);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to