mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
delete tomcat-embed-core stub, update the ServletGetMethod class
This commit is contained in:
@@ -21,7 +21,7 @@ abstract class RequestGetMethod extends Method {
|
||||
|
||||
/** Override method of `doGet` of `Servlet` subclass. */
|
||||
private class ServletGetMethod extends RequestGetMethod {
|
||||
ServletGetMethod() { isServletRequestMethod(this) and m.getName() = "doGet" }
|
||||
ServletGetMethod() { isServletRequestMethod(this) and this.getName() = "doGet" }
|
||||
}
|
||||
|
||||
/** The method of SpringController class processing `get` request. */
|
||||
|
||||
@@ -361,13 +361,3 @@ predicate isDoFilterMethod(Method m) {
|
||||
m.getParameter(1).getType() instanceof ServletResponse and
|
||||
m.getParameter(2).getType() instanceof FilterChain
|
||||
}
|
||||
|
||||
/** Holds if `m` is a method of some override of `HttpServlet.doGet`. */
|
||||
predicate isGetServletMethod(Method m) {
|
||||
isServletRequestMethod(m) and m.getName() = "doGet"
|
||||
}
|
||||
|
||||
/** The `doGet` method of `HttpServlet`. */
|
||||
class DoGetServletMethod extends Method {
|
||||
DoGetServletMethod() { isGetServletMethod(this) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user