Author: dkulp
Date: Wed Nov 12 17:07:20 2008
New Revision: 713597

URL: http://svn.apache.org/viewvc?rev=713597&view=rev
Log:
fix pmd error (not sure why pmd isn't running in eclipse for me right now)

Modified:
    
cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/CertificateHostnameVerifier.java

Modified: 
cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/CertificateHostnameVerifier.java
URL: 
http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/CertificateHostnameVerifier.java?rev=713597&r1=713596&r2=713597&view=diff
==============================================================================
--- 
cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/CertificateHostnameVerifier.java
 (original)
+++ 
cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/CertificateHostnameVerifier.java
 Wed Nov 12 17:07:20 2008
@@ -455,15 +455,14 @@
 
         public static boolean acceptableCountryWildcard(final String cn) {
             int cnLen = cn.length();
-            if (cnLen >= 7 && cnLen <= 9) {
+            if (cnLen >= 7 && cnLen <= 9
                 // Look for the '.' in the 3rd-last position:
-                if (cn.charAt(cnLen - 3) == '.') {
-                    // Trim off the [*.] and the [.XX].
-                    String s = cn.substring(2, cnLen - 3);
-                    // And test against the sorted array of bad 2lds:
-                    int x = Arrays.binarySearch(BAD_COUNTRY_2LDS, s);
-                    return x < 0;
-                }
+                && cn.charAt(cnLen - 3) == '.') {
+                // Trim off the [*.] and the [.XX].
+                String s = cn.substring(2, cnLen - 3);
+                // And test against the sorted array of bad 2lds:
+                int x = Arrays.binarySearch(BAD_COUNTRY_2LDS, s);
+                return x < 0;               
             }
             return true;
         }


Reply via email to