We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eefa4c commit 70eced6Copy full SHA for 70eced6
java/ql/src/Violations of Best Practice/Naming Conventions/Shadowing.qll
@@ -1,9 +1,5 @@
1
import java
2
3
-predicate initializedToField(LocalVariableDecl d, Field f) {
4
- exists(LocalVariableDeclExpr e | e.getVariable() = d and f.getAnAccess() = e.getInit())
5
-}
6
-
7
predicate getterFor(Method m, Field f) {
8
m.getName().matches("get%") and
9
m.getDeclaringType() = f.getDeclaringType() and
0 commit comments