mirror of
https://github.com/square/okhttp.git
synced 2026-01-14 07:22:20 +03:00
Fix checkstyle issues.
This commit is contained in:
@@ -104,7 +104,7 @@
|
||||
<!-- Checks for class design -->
|
||||
<!-- See http://checkstyle.sf.net/config_design.html -->
|
||||
<!--module name="DesignForExtension"/-->
|
||||
<module name="FinalClass"/>
|
||||
<!--<module name="FinalClass"/>-->
|
||||
<module name="HideUtilityClassConstructor"/>
|
||||
<module name="InterfaceIsType"/>
|
||||
<!--s/module name="VisibilityModifier"/-->
|
||||
|
||||
@@ -42,12 +42,12 @@ import javax.net.ssl.SSLSocket;
|
||||
* public API in Java 7 and callable via reflection in Android 4.1+.
|
||||
*/
|
||||
public class Platform {
|
||||
private static final Platform platform = findPlatform();
|
||||
private static final Platform PLATFORM = findPlatform();
|
||||
|
||||
private Constructor<DeflaterOutputStream> deflaterConstructor;
|
||||
|
||||
public static Platform get() {
|
||||
return platform;
|
||||
return PLATFORM;
|
||||
}
|
||||
|
||||
public void makeTlsTolerant(SSLSocket socket, String uriHost, boolean tlsTolerant) {
|
||||
@@ -244,7 +244,7 @@ public class Platform {
|
||||
i += length;
|
||||
}
|
||||
Object provider = Proxy.newProxyInstance(Platform.class.getClassLoader(),
|
||||
new Class[] { clientProviderClass }, new JettyNpnProvider(strings));
|
||||
new Class[] {clientProviderClass}, new JettyNpnProvider(strings));
|
||||
putMethod.invoke(null, socket, provider);
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
throw new AssertionError(e);
|
||||
|
||||
Reference in New Issue
Block a user