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 {
6161 /**
6262 * Gets the flags for `root`, or the empty string if `root` has no flags.
6363 */
64- string getFlags ( RegExpTerm root ) {
64+ deprecated string getFlags ( RegExpTerm root ) {
6565 root .isRootTerm ( ) and
6666 result = root .getLiteral ( ) .getFlags ( )
6767 }
Original file line number Diff line number Diff line change 11import java
22
3- predicate initializedToField ( LocalVariableDecl d , Field f ) {
4- exists ( LocalVariableDeclExpr e | e .getVariable ( ) = d and f .getAnAccess ( ) = e .getInit ( ) )
5- }
6-
73predicate getterFor ( Method m , Field f ) {
84 m .getName ( ) .matches ( "get%" ) and
95 m .getDeclaringType ( ) = f .getDeclaringType ( ) and
You can’t perform that action at this time.
0 commit comments