Unnecessary final modifier in final class.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1676915 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6f4a762197
commit
2fddd8e03b
|
@ -80,7 +80,7 @@ public final class DefaultHostnameVerifier implements HostnameVerifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final boolean verify(final String host, final SSLSession session) {
|
public boolean verify(final String host, final SSLSession session) {
|
||||||
try {
|
try {
|
||||||
final Certificate[] certs = session.getPeerCertificates();
|
final Certificate[] certs = session.getPeerCertificates();
|
||||||
final X509Certificate x509 = (X509Certificate) certs[0];
|
final X509Certificate x509 = (X509Certificate) certs[0];
|
||||||
|
@ -94,7 +94,7 @@ public final class DefaultHostnameVerifier implements HostnameVerifier {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void verify(
|
public void verify(
|
||||||
final String host, final X509Certificate cert) throws SSLException {
|
final String host, final X509Certificate cert) throws SSLException {
|
||||||
final boolean ipv4 = InetAddressUtils.isIPv4Address(host);
|
final boolean ipv4 = InetAddressUtils.isIPv4Address(host);
|
||||||
final boolean ipv6 = InetAddressUtils.isIPv6Address(host);
|
final boolean ipv6 = InetAddressUtils.isIPv6Address(host);
|
||||||
|
|
Loading…
Reference in New Issue