mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Apply suggestions from code review
Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
committed by
GitHub
parent
7ab193dde2
commit
5243fe3dbf
@@ -270,7 +270,7 @@ class MethodAccessSystemGetProperty extends MethodAccess {
|
||||
* For example: `System.getProperty("user.dir")`.
|
||||
*
|
||||
* Note: Better to use `semmle.code.java.environment.SystemProperty#getSystemProperty` instead
|
||||
* as that predicate covers more libraries' and JDK API's ways of accessing the same information
|
||||
* as that predicate covers ways of accessing the same information via various libraries.
|
||||
*/
|
||||
predicate hasCompileTimeConstantGetPropertyName(string propertyName) {
|
||||
this.getArgument(0).(CompileTimeConstantExpr).getStringValue() = propertyName
|
||||
|
||||
Reference in New Issue
Block a user