mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
12 lines
329 B
Java
12 lines
329 B
Java
import java.net.URL;
|
|
import java.net.URLConnection;
|
|
|
|
class Test{
|
|
URLConnection test1() throws Exception {
|
|
return new URL("https://good.example.com").openConnection();
|
|
}
|
|
|
|
URLConnection test2() throws Exception {
|
|
return new URL("https://bad.example.com").openConnection(); // $hasUntrustedResult
|
|
}
|
|
} |