Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c78285e + 2787c2f commit 404a6c1Copy full SHA for 404a6c1
1 file changed
java/ql/src/semmle/code/java/frameworks/spring/SpringProperty.qll
@@ -69,11 +69,19 @@ class SpringProperty extends SpringXMLElement {
69
)
70
}
71
72
+ /**
73
+ * Gets a setter method declared on this property's enclosing bean that sets this property.
74
+ */
75
Method getSetterMethod() {
76
this.getEnclosingBean().getClass().hasMethod(result, _) and
77
result.getName().toLowerCase() = "set" + this.getPropertyName().toLowerCase()
78
79
80
81
+ * Gets a setter method declared on bean `context` that sets this property.
82
+ *
83
+ * This property must be declared on a bean that is an ancestor of `context`.
84
85
Method getSetterMethod(SpringBean context) {
86
this.getEnclosingBean() = context.getBeanParent*() and
87
context.getClass().hasMethod(result, _) and
0 commit comments