Codebase list findbugs / ae8b2526-32e9-4b37-8f72-25923ca1a232/main debian / patches / 0011-typecast.patch
ae8b2526-32e9-4b37-8f72-25923ca1a232/main

Tree @ae8b2526-32e9-4b37-8f72-25923ca1a232/main (Download .tar.gz)

0011-typecast.patch @ae8b2526-32e9-4b37-8f72-25923ca1a232/main

f8af55e
 
 
 
 
 
 
 
 
 
 
 
--- a/src/java/edu/umd/cs/findbugs/detect/CheckRelaxingNullnessAnnotation.java
+++ b/src/java/edu/umd/cs/findbugs/detect/CheckRelaxingNullnessAnnotation.java
@@ -202,7 +202,8 @@
                         bug.addClassAndMethod(xmethod);
                         LocalVariableAnnotation lva = null;
                         if (localVariables != null) {
-                            for(LocalVariableNode lvn : localVariables) {
+                            for(Object obj : localVariables) {
+                                LocalVariableNode lvn = (LocalVariableNode)obj;
                                 if (lvn.index == i+1) {
                                     lva = new LocalVariableAnnotation(lvn.name, i+1, 0);
                                     lva.setDescription(LocalVariableAnnotation.PARAMETER_NAMED_ROLE);