mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Java: Update test expected output.
This commit is contained in:
@@ -7,7 +7,7 @@ import java.nio.file.Files;
|
||||
public class ImplOfExternalSPI extends AbstractImplOfExternalSPI {
|
||||
|
||||
// sink=p;AbstractImplOfExternalSPI;true;accept;(File);;Argument[0];path-injection;df-generated
|
||||
// neutral=p;AbstractImplOfExternalSPI;accept;(File);summary;df-generated
|
||||
// neutral=p;ImplOfExternalSPI;accept;(File);summary;df-generated
|
||||
@Override
|
||||
public boolean accept(File pathname) {
|
||||
try {
|
||||
|
||||
@@ -94,21 +94,20 @@ public class Inheritance {
|
||||
}
|
||||
|
||||
public class F implements INeutral {
|
||||
// SPURIOUS-neutral=p;Inheritance$INeutral;id;(String);summary;df-generated
|
||||
// neutral=p;Inheritance$F;id;(String);summary;df-generated
|
||||
public String id(String s) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
public class G implements INeutral {
|
||||
// SPURIOUS-neutral=p;Inheritance$INeutral;id;(String);summary;df-generated
|
||||
// neutral=p;Inheritance$G;id;(String);summary;df-generated
|
||||
public String id(String s) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
private class H implements INeutral {
|
||||
// SPURIOUS-neutral=p;Inheritance$INeutral;id;(String);summary;df-generated
|
||||
public String id(String s) {
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -45,7 +45,6 @@ public class PrivateFlowViaPublicInterface {
|
||||
return null;
|
||||
}
|
||||
|
||||
// neutral=p;PrivateFlowViaPublicInterface$SPI;openStreamNone;();summary;df-generated
|
||||
@Override
|
||||
public OutputStream openStreamNone() throws IOException {
|
||||
return new FileOutputStream(new RandomPojo().someFile);
|
||||
|
||||
Reference in New Issue
Block a user