From: markt Date: Fri, 3 Sep 2010 18:47:29 +0000 (+0000) Subject: Remove some unnecessary code and fix an Eclipse warning X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=be2d05b60ed0be10df59a78250625fe10229a83e;p=tomcat7.0 Remove some unnecessary code and fix an Eclipse warning git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@992413 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/bcel/classfile/SimpleElementValue.java b/java/org/apache/tomcat/util/bcel/classfile/SimpleElementValue.java index 25b8a2eeb..d86619369 100644 --- a/java/org/apache/tomcat/util/bcel/classfile/SimpleElementValue.java +++ b/java/org/apache/tomcat/util/bcel/classfile/SimpleElementValue.java @@ -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);