Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e3f6f7 commit bb6e044Copy full SHA for bb6e044
1 file changed
java/ql/src/Violations of Best Practice/Boxed Types/BoxedVariable.ql
@@ -63,7 +63,7 @@ from LocalBoxedVar v
63
where
64
forall(Expr e | e = v.getAnAssignedValue() | e.getType() = v.getPrimitiveType()) and
65
(
66
- not v.getDeclExpr().getParent() instanceof EnhancedForStmt or
+ not v.getDeclExpr().hasImplicitInit() or
67
v.getDeclExpr().getParent().(EnhancedForStmt).getExpr().getType().(Array).getComponentType() =
68
v.getPrimitiveType()
69
) and
0 commit comments