mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Java: Make a testcase for wrappers of sources.
This commit is contained in:
@@ -2,3 +2,4 @@
|
||||
| p;Sources;true;socketStream;();;ReturnValue;remote |
|
||||
| p;Sources;true;sourceToParameter;(InputStream[],List);;Argument[0].ArrayElement;remote |
|
||||
| p;Sources;true;sourceToParameter;(InputStream[],List);;Argument[1].Element;remote |
|
||||
| p;Sources;true;wrappedSocketStream;();;ReturnValue;remote |
|
||||
|
||||
@@ -19,6 +19,10 @@ public class Sources {
|
||||
return socket.accept().getInputStream();
|
||||
}
|
||||
|
||||
public InputStream wrappedSocketStream() throws IOException {
|
||||
return socketStream();
|
||||
}
|
||||
|
||||
public void sourceToParameter(InputStream[] streams, List<InputStream> otherStreams) throws IOException {
|
||||
ServerSocket socket = new ServerSocket(123);
|
||||
streams[0] = socket.accept().getInputStream();
|
||||
|
||||
Reference in New Issue
Block a user