mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Remove basic support for lambda flow
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
| p;Sources;true;consumeSource;(int,Consumer);;Parameter[1];remote |
|
||||
| p;Sources;true;readUrl;(URL);;ReturnValue;remote |
|
||||
| p;Sources;true;socketStream;();;ReturnValue;remote |
|
||||
|
||||
@@ -18,8 +18,4 @@ public class Sources {
|
||||
return socket.accept().getInputStream();
|
||||
}
|
||||
|
||||
public void consumeSource(int port, Consumer<InputStream> consumer) throws IOException {
|
||||
ServerSocket socket = new ServerSocket(port);
|
||||
consumer.accept(socket.accept().getInputStream());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user