File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed
src/semmle/code/java/frameworks Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -337,27 +337,3 @@ predicate isRequestGetParamMethod(MethodAccess ma) {
337
337
ma .getMethod ( ) instanceof ServletRequestGetParameterMapMethod or
338
338
ma .getMethod ( ) instanceof HttpServletRequestGetQueryStringMethod
339
339
}
340
-
341
- /**
342
- * A class that has `javax.servlet.Filter` as an ancestor.
343
- */
344
- class FilterClass extends Class {
345
- FilterClass ( ) { getAnAncestor ( ) .hasQualifiedName ( "javax.servlet" , "Filter" ) }
346
- }
347
-
348
- /**
349
- * The interface `javax.servlet.FilterChain`
350
- */
351
- class FilterChain extends Interface {
352
- FilterChain ( ) { hasQualifiedName ( "javax.servlet" , "FilterChain" ) }
353
- }
354
-
355
- /** Holds if `m` is an implementation of `javax.servlet.Filter.doFilter`. */
356
- predicate isDoFilterMethod ( Method m ) {
357
- m .getName ( ) = "doFilter" and
358
- m .getDeclaringType ( ) instanceof FilterClass and
359
- m .getNumberOfParameters ( ) = 3 and
360
- m .getParameter ( 0 ) .getType ( ) instanceof ServletRequest and
361
- m .getParameter ( 1 ) .getType ( ) instanceof ServletResponse and
362
- m .getParameter ( 2 ) .getType ( ) instanceof FilterChain
363
- }
You can’t perform that action at this time.
0 commit comments