Files
codeql/java/ql/test/library-tests/JDK/jdk/SystemGetPropertyCall.java
2021-01-01 20:07:45 -05:00

22 lines
387 B
Java

package jdk;
public class SystemGetPropertyCall {
private static final String USER_DIR_PROPERTY = "user.dir";
void a() {
System.getProperty("user.dir");
}
void b() {
System.getProperty("user.dir", "HOME");
}
void c() {
System.getProperty(USER_DIR_PROPERTY);
}
void d() {
System.getProperty("random.property");
}
}