src/java.base/share/classes/sun/net/www/protocol/http/AuthenticationInfo.java
changeset 53018 8bf9268df0e2
parent 52499 768b1c612100
child 57793 d372747e8f08
child 58678 9cf78a70fa4f
equal deleted inserted replaced
53017:e10a1f7aaa13 53018:8bf9268df0e2
   246             this.port = url.getDefaultPort();
   246             this.port = url.getDefaultPort();
   247         }
   247         }
   248         this.realm = realm;
   248         this.realm = realm;
   249 
   249 
   250         String urlPath = url.getPath();
   250         String urlPath = url.getPath();
   251         if (urlPath.length() == 0)
   251         if (urlPath.isEmpty())
   252             this.path = urlPath;
   252             this.path = urlPath;
   253         else {
   253         else {
   254             this.path = reducePath (urlPath);
   254             this.path = reducePath (urlPath);
   255         }
   255         }
   256         this.authenticatorKey = Objects.requireNonNull(authenticatorKey);
   256         this.authenticatorKey = Objects.requireNonNull(authenticatorKey);