commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1149778 - /commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/SimpleElementValueGen.java
Date Sat, 23 Jul 2011 01:49:25 GMT
Author: dbrosius
Date: Sat Jul 23 01:49:24 2011
New Revision: 1149778

URL: http://svn.apache.org/viewvc?rev=1149778&view=rev
Log:
simplify logic

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/SimpleElementValueGen.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/SimpleElementValueGen.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/SimpleElementValueGen.java?rev=1149778&r1=1149777&r2=1149778&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/SimpleElementValueGen.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/SimpleElementValueGen.java
Sat Jul 23 01:49:24 2011
@@ -225,7 +225,7 @@ public class SimpleElementValueGen exten
 			ConstantInteger bo = (ConstantInteger) cpGen.getConstant(idx);
 			if (bo.getBytes() == 0)
 				return "false";
-			if (bo.getBytes() != 0)
+			else
 				return "true";
 		case STRING:
 			ConstantUtf8 cu8 = (ConstantUtf8) cpGen.getConstant(idx);



Mime
View raw message