commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1392545 - /commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java
Date Mon, 01 Oct 2012 19:30:42 GMT
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,



Mime
View raw message