We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c089368 commit c3a2ae2Copy full SHA for c3a2ae2
java/ql/lib/semmle/code/java/frameworks/struts/Struts2Serializability.qll
@@ -36,7 +36,12 @@ private class Struts2ActionField extends DeserializableField {
36
exists(Struts2DeserializableType superType |
37
superType = this.getDeclaringType().getAnAncestor() and
38
not superType instanceof TypeObject and
39
- superType.fromSource()
+ superType.fromSource() and
40
+ (
41
+ this.isPublic()
42
+ or
43
+ exists(SetterMethod setter | setter.getField() = this and setter.isPublic())
44
+ )
45
)
46
}
47
0 commit comments