Account for public fields/setters

This commit is contained in:
Alvaro Muñoz
2023-07-28 12:12:07 +02:00
parent c089368557
commit c3a2ae2943

View File

@@ -36,7 +36,12 @@ private class Struts2ActionField extends DeserializableField {
exists(Struts2DeserializableType superType |
superType = this.getDeclaringType().getAnAncestor() and
not superType instanceof TypeObject and
superType.fromSource()
superType.fromSource() and
(
this.isPublic()
or
exists(SetterMethod setter | setter.getField() = this and setter.isPublic())
)
)
}
}