Skip to content

Commit 0e3e849

Browse files
Jami CogswellJami Cogswell
authored andcommitted
add negative summary test for java
1 parent aa63341 commit 0e3e849

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
| java.io.File#File(String) | 2 |
12
| java.net.URL#URL(String) | 2 |
2-
| java.io.File#File(String) | 1 |
33
| java.io.FileWriter#FileWriter(File) | 1 |
44
| java.lang.StringBuilder#append(String) | 1 |
55
| java.lang.StringBuilder#toString() | 1 |
66
| java.net.URL#openConnection() | 1 |
77
| java.net.URL#openStream() | 1 |
88
| java.net.URLConnection#getInputStream() | 1 |
99
| java.util.Map#put(Object,Object) | 1 |
10+
| org.apache.commons.io.FileUtils#deleteDirectory(File) | 1 |

java/ql/test/query-tests/Telemetry/SupportedExternalApis/SupportedExternalApis.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import java.net.URL;
66
import java.io.File;
77
import java.io.FileWriter;
8+
import org.apache.commons.io.FileUtils;
89

910
class SupportedExternalApis {
1011
public static void main(String[] args) throws Exception {
@@ -22,5 +23,7 @@ public static void main(String[] args) throws Exception {
2223

2324
new FileWriter(new File("foo")); // supported sink (FileWriter), supported summary (File)
2425
new URL("http://foo").openStream(); // supported sink (openStream), supported summary (URL)
26+
27+
FileUtils.deleteDirectory(new File("foo")); // supported negative summary (deleteDirectory), supported summary (File)
2528
}
2629
}

0 commit comments

Comments
 (0)