File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
lib/semmle/code/java/security/regexp
src/Violations of Best Practice/Naming Conventions Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ module RegExpFlags {
61
61
/**
62
62
* Gets the flags for `root`, or the empty string if `root` has no flags.
63
63
*/
64
- string getFlags ( RegExpTerm root ) {
64
+ deprecated string getFlags ( RegExpTerm root ) {
65
65
root .isRootTerm ( ) and
66
66
result = root .getLiteral ( ) .getFlags ( )
67
67
}
Original file line number Diff line number Diff line change 1
1
import java
2
2
3
- predicate initializedToField ( LocalVariableDecl d , Field f ) {
4
- exists ( LocalVariableDeclExpr e | e .getVariable ( ) = d and f .getAnAccess ( ) = e .getInit ( ) )
5
- }
6
-
7
3
predicate getterFor ( Method m , Field f ) {
8
4
m .getName ( ) .matches ( "get%" ) and
9
5
m .getDeclaringType ( ) = f .getDeclaringType ( ) and
You can’t perform that action at this time.
0 commit comments