mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Java: Inline expectation should have space after $
This was a regex-find-replace from `// \$(?! )` (using a negative lookahead) to `// $ `.
This commit is contained in:
@@ -6,11 +6,11 @@ public class Hudson {
|
||||
|
||||
public static void test() throws Exception {
|
||||
FilePath fp = null;
|
||||
sink(FilePath.newInputStreamDenyingSymlinkAsNeeded(null, null, null)); // $hasLocalValueFlow
|
||||
sink(FilePath.openInputStream(null, null)); // $hasLocalValueFlow
|
||||
sink(fp.read()); // $hasLocalValueFlow
|
||||
sink(fp.read(null)); // $hasLocalValueFlow
|
||||
sink(fp.readFromOffset(-1)); // $hasLocalValueFlow
|
||||
sink(fp.readToString()); // $hasLocalValueFlow
|
||||
sink(FilePath.newInputStreamDenyingSymlinkAsNeeded(null, null, null)); // $ hasLocalValueFlow
|
||||
sink(FilePath.openInputStream(null, null)); // $ hasLocalValueFlow
|
||||
sink(fp.read()); // $ hasLocalValueFlow
|
||||
sink(fp.read(null)); // $ hasLocalValueFlow
|
||||
sink(fp.readFromOffset(-1)); // $ hasLocalValueFlow
|
||||
sink(fp.readToString()); // $ hasLocalValueFlow
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user