Skip to content

Commit 15b576b

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: use two negations
1 parent 0d41a1c commit 15b576b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

java/ql/lib/semmle/code/java/security/CsrfUnprotectedRequestTypeQuery.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ private class SpringCsrfUnprotectedMethod extends CsrfUnprotectedMethod instance
4242
private class StaplerCsrfUnprotectedMethod extends CsrfUnprotectedMethod instanceof StaplerWebMethod
4343
{
4444
StaplerCsrfUnprotectedMethod() {
45-
not (
46-
this.hasAnnotation("org.kohsuke.stapler.interceptor", "RequirePOST") or
47-
this.hasAnnotation("org.kohsuke.stapler.verb", "POST")
48-
)
45+
not this.hasAnnotation("org.kohsuke.stapler.interceptor", "RequirePOST") and
46+
not this.hasAnnotation("org.kohsuke.stapler.verb", "POST")
4947
}
5048
}
5149

0 commit comments

Comments
 (0)