tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r992413 - /tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/SimpleElementValue.java
Date Fri, 03 Sep 2010 18:47:29 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message