1
0
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:
Jesse Wilson
2012-12-03 11:18:53 -05:00
parent 8ab9438c70
commit bbea4aaa6f
2 changed files with 4 additions and 4 deletions

View File

@@ -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"/-->

View File

@@ -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);