Skip to content

Commit 216f204

Browse files
committed
delete FilterClass
1 parent 583d088 commit 216f204

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

java/ql/src/semmle/code/java/frameworks/Servlets.qll

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -337,27 +337,3 @@ predicate isRequestGetParamMethod(MethodAccess ma) {
337337
ma.getMethod() instanceof ServletRequestGetParameterMapMethod or
338338
ma.getMethod() instanceof HttpServletRequestGetQueryStringMethod
339339
}
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-
}
-55.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)