Files
codeql/java/ql/test/library-tests/dataflow/taintsources/RmiFlowImpl.java
Owen Mansel-Chan ef345a3279 Java: Inline expectation should have space after $
This was a regex-find-replace from `// \$(?! )` (using a negative lookahead) to `// $ `.
2026-03-04 12:44:54 +00:00

19 lines
501 B
Java

package security.library.dataflow;
public class RmiFlowImpl implements RmiFlow {
private static void sink(Object o) {}
public String listDirectory(String path) throws java.io.IOException {
String command = "ls " + path;
sink(command); // $ hasRemoteTaintFlow
return "pretend there are some results here";
}
public String notRemotable(String path) throws java.io.IOException {
String command = "ls " + path;
sink(command); // Safe
return "pretend there are some results here";
}
}