mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Initial support for source models
This commit is contained in:
@@ -0,0 +1 @@
|
||||
| p;Sources;true;readUrl;(URL);;ReturnValue;remote; |
|
||||
@@ -0,0 +1 @@
|
||||
utils/model-generator/CaptureSourceModels.ql
|
||||
14
java/ql/test/utils/model-generator/p/Sources.java
Normal file
14
java/ql/test/utils/model-generator/p/Sources.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package p;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
|
||||
|
||||
public class Sources {
|
||||
|
||||
public InputStream readUrl(final URL url) throws IOException {
|
||||
return url.openConnection().getInputStream();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user