< prev index next >

src/java.base/share/classes/sun/net/www/protocol/http/AuthenticationInfo.java

Print this page
rev 52979 : 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: TBD

*** 246,256 **** this.port = url.getDefaultPort(); } this.realm = realm; String urlPath = url.getPath(); ! if (urlPath.length() == 0) this.path = urlPath; else { this.path = reducePath (urlPath); } this.authenticatorKey = Objects.requireNonNull(authenticatorKey); --- 246,256 ---- this.port = url.getDefaultPort(); } this.realm = realm; String urlPath = url.getPath(); ! if (urlPath.isEmpty()) this.path = urlPath; else { this.path = reducePath (urlPath); } this.authenticatorKey = Objects.requireNonNull(authenticatorKey);
< prev index next >