mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Java: Inline expectation should have space after $
This was a regex-find-replace from `// \$(?! )` (using a negative lookahead) to `// $ `.
This commit is contained in:
@@ -7,7 +7,7 @@ class Test {
|
||||
}
|
||||
|
||||
URLConnection test2() throws Exception {
|
||||
return new URL("https://bad.example.com").openConnection(); // $hasUntrustedResult
|
||||
return new URL("https://bad.example.com").openConnection(); // $ hasUntrustedResult
|
||||
}
|
||||
|
||||
URLConnection test3() throws Exception {
|
||||
|
||||
@@ -3,7 +3,7 @@ import java.net.URLConnection;
|
||||
|
||||
class Test {
|
||||
URLConnection test2() throws Exception {
|
||||
return new URL("https://example.com").openConnection(); // $hasNoTrustedResult
|
||||
return new URL("https://example.com").openConnection(); // $ hasNoTrustedResult
|
||||
}
|
||||
|
||||
URLConnection test3() throws Exception {
|
||||
|
||||
@@ -11,7 +11,7 @@ class Test {
|
||||
new OkHttpClient.Builder().certificatePinner(certificatePinner).build();
|
||||
|
||||
client.newCall(new Request.Builder().url("https://good.example.com").build()).execute();
|
||||
client.newCall(new Request.Builder().url("https://bad.example.com").build()).execute(); // $hasUntrustedResult
|
||||
client.newCall(new Request.Builder().url("https://bad.example.com").build()).execute(); // $ hasUntrustedResult
|
||||
client.newCall(new Request.Builder().url("classpath:example/directory/test.class").build())
|
||||
.execute();
|
||||
client.newCall(new Request.Builder().url("file:///example/file").build()).execute();
|
||||
|
||||
@@ -28,6 +28,6 @@ class Test {
|
||||
|
||||
void test2() throws Exception {
|
||||
URL url = new URL("http://www.example.com/");
|
||||
HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection(); // $hasNoTrustedResult
|
||||
HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection(); // $ hasNoTrustedResult
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ import android.app.Activity;
|
||||
|
||||
class Test {
|
||||
class A extends WebViewClient {
|
||||
public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) { // $hasResult
|
||||
handler.proceed();
|
||||
public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) { // $ hasResult
|
||||
handler.proceed();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ class Test {
|
||||
else {
|
||||
handler.cancel();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class C extends WebViewClient {
|
||||
@@ -51,4 +51,4 @@ class Test {
|
||||
}).show();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user