Apply suggestions from code review

Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
Jonathan Leitschuh
2022-03-04 15:30:52 -05:00
committed by GitHub
parent 7ab193dde2
commit 5243fe3dbf

View File

@@ -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