mirror of
https://github.com/square/okhttp.git
synced 2026-01-25 16:01:38 +03:00
Checkstyle fixes.
This commit is contained in:
@@ -30,10 +30,10 @@ final class DistinguishedNameParser {
|
||||
private int beg;
|
||||
private int end;
|
||||
|
||||
/** tmp vars to store positions of the currently parsed item */
|
||||
/** Temporary variable to store positions of the currently parsed item. */
|
||||
private int cur;
|
||||
|
||||
/** distinguished name chars */
|
||||
/** Distinguished name characters. */
|
||||
private char[] chars;
|
||||
|
||||
public DistinguishedNameParser(X500Principal principal) {
|
||||
|
||||
@@ -53,7 +53,7 @@ public final class OkHostnameVerifier implements HostnameVerifier {
|
||||
private static final int ALT_DNS_NAME = 2;
|
||||
private static final int ALT_IPA_NAME = 7;
|
||||
|
||||
public final boolean verify(String host, SSLSession session) {
|
||||
public boolean verify(String host, SSLSession session) {
|
||||
try {
|
||||
Certificate[] certificates = session.getPeerCertificates();
|
||||
return verify(host, (X509Certificate) certificates[0]);
|
||||
|
||||
Reference in New Issue
Block a user