diff --git a/java/ql/lib/semmle/code/java/frameworks/Properties.qll b/java/ql/lib/semmle/code/java/frameworks/Properties.qll index 3bcf860d7ee..15e7b687885 100644 --- a/java/ql/lib/semmle/code/java/frameworks/Properties.qll +++ b/java/ql/lib/semmle/code/java/frameworks/Properties.qll @@ -56,6 +56,9 @@ class PropertiesGetPropertyMethodCall extends MethodCall { this.getArgument(0).(ConstantStringExpr).getStringValue() = result.getNameElement().getName() } + /** + * Get the potential string values that can be associated with the given property name. + */ string getPropertyValue() { result = this.getPair().getValueElement().getValue() or result = this.getArgument(1).(ConstantStringExpr).getStringValue()