CodeQL library for Java/Kotlin
codeql/java-all 0.9.2-dev (changelog, source)
Search

Member predicate MethodCallSystemGetProperty::hasCompileTimeConstantGetPropertyName

Holds if this call has a compile-time constant first argument with the value propertyName. For example: System.getProperty("user.dir").

Note: Better to use semmle.code.java.environment.SystemProperty#getSystemProperty instead as that predicate covers ways of accessing the same information via various libraries.

predicate hasCompileTimeConstantGetPropertyName(string propertyName)