Skip to content

Commit 0175a59

Browse files
authored
Update java/ql/src/experimental/Security/CWE/CWE-600/UncaughtServletException.ql
1 parent dcb7324 commit 0175a59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java/ql/src/experimental/Security/CWE/CWE-600/UncaughtServletException.ql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ private predicate isServletMethod(Callable c) {
3434
c.getDeclaringType() instanceof ServletClass and
3535
c.getNumberOfParameters() = 2 and
3636
c.getParameter(1).getType() instanceof ServletResponse and
37-
c.getName() in ["doGet", "doPost", "doPut", "doDelete", "doHead", "doOptions", "doTrace",
38-
"service"]
37+
c.getName() in [
38+
"doGet", "doPost", "doPut", "doDelete", "doHead", "doOptions", "doTrace", "service"
39+
]
3940
}
4041

4142
/** Holds if `web.xml` has an error page configured. */

0 commit comments

Comments
 (0)