We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71a9f37 commit 04e998fCopy full SHA for 04e998f
1 file changed
communication/src/main/java/okhttp3/internal/platform/PatchPlatform.java
@@ -16,6 +16,7 @@
16
*/
17
package okhttp3.internal.platform;
18
19
+import de.thetaphi.forbiddenapis.SuppressForbidden;
20
import java.io.IOException;
21
import java.lang.reflect.Field;
22
import java.net.InetSocketAddress;
@@ -91,6 +92,7 @@ public String getPrefix() {
91
92
return "OkHttp";
93
}
94
95
+ @SuppressForbidden // allow this use of Class.forName()
96
protected @Nullable X509TrustManager trustManager(SSLSocketFactory sslSocketFactory) {
97
// Attempt to get the trust manager from an OpenJDK socket factory. We attempt this on all
98
// platforms in order to support Robolectric, which mixes classes from both Android and the
0 commit comments