mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Revert changes to MethodAccessSystemGetProperty
This commit is contained in:
@@ -236,14 +236,14 @@ class MethodSystemGetProperty extends Method {
|
||||
}
|
||||
|
||||
/**
|
||||
* Any method access to a method named `getProperty` on class `java.lang.System`.
|
||||
* An access to a method named `getProperty` on class `java.lang.System`.
|
||||
*/
|
||||
class MethodAccessSystemGetProperty extends MethodAccess {
|
||||
MethodAccessSystemGetProperty() { this.getMethod() instanceof MethodSystemGetProperty }
|
||||
|
||||
/**
|
||||
* Holds true if this is a compile-time constant call for the specified `propertyName`.
|
||||
* Eg. `System.getProperty("user.dir")`.
|
||||
* Holds if this call has a compile-time constant first argument with the value `propertyName`.
|
||||
* For example: `System.getProperty("user.dir")`.
|
||||
*/
|
||||
predicate hasCompileTimeConstantGetPropertyName(string propertyName) {
|
||||
this.getArgument(0).(CompileTimeConstantExpr).getStringValue() = propertyName
|
||||
|
||||
Reference in New Issue
Block a user