CodeQL library for Java
codeql/java-all 0.5.5 ( changelog , source )

Member predicate MethodAccessSystemGetProperty :: 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 instead as that predicate covers ways of accessing the same information via various libraries.

predicate hasCompileTimeConstantGetPropertyName ( string propertyName )