mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +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:
@@ -9,21 +9,21 @@ public class IntentSourcesActivity extends Activity {
|
||||
public void test() throws java.io.IOException {
|
||||
|
||||
String trouble = this.getIntent().getStringExtra("key");
|
||||
sink(trouble); // $hasRemoteTaintFlow
|
||||
sink(trouble); // $ hasRemoteTaintFlow
|
||||
|
||||
}
|
||||
|
||||
public void test2() throws java.io.IOException {
|
||||
|
||||
String trouble = getIntent().getStringExtra("key");
|
||||
sink(trouble); // $hasRemoteTaintFlow
|
||||
sink(trouble); // $ hasRemoteTaintFlow
|
||||
|
||||
}
|
||||
|
||||
public void test3() throws java.io.IOException {
|
||||
|
||||
String trouble = getIntent().getExtras().getString("key");
|
||||
sink(trouble); // $hasRemoteTaintFlow
|
||||
sink(trouble); // $ hasRemoteTaintFlow
|
||||
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@ class OtherClass {
|
||||
|
||||
public void test(IntentSourcesActivity is) throws java.io.IOException {
|
||||
String trouble = is.getIntent().getStringExtra("key");
|
||||
sink(trouble); // $hasRemoteTaintFlow
|
||||
sink(trouble); // $ hasRemoteTaintFlow
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user