You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2012/10/01 21:30:42 UTC
svn commit: r1392545 -
/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java
Author: luc
Date: Mon Oct 1 19:30:42 2012
New Revision: 1392545
URL: http://svn.apache.org/viewvc?rev=1392545&view=rev
Log:
Fixed findbugs error.
Modified:
commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java
Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java?rev=1392545&r1=1392544&r2=1392545&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java (original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java Mon Oct 1 19:30:42 2012
@@ -540,7 +540,9 @@ public class MethodDifferentiator {
boxedType = null;
}
- list.add(new TypeInsnNode(Opcodes.CHECKCAST, boxedType.getInternalName()));
+ if (boxedType != null) {
+ list.add(new TypeInsnNode(Opcodes.CHECKCAST, boxedType.getInternalName()));
+ }
if (valueMethodName != null) {
list.add(new MethodInsnNode(Opcodes.INVOKEVIRTUAL, boxedType.getInternalName(),
valueMethodName,