< prev index next >
src/java.base/share/classes/javax/net/ssl/SSLParameters.java
Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad
*** 666,676 ****
}
String[] tempProtocols = protocols.clone();
for (String p : tempProtocols) {
! if (p == null || p.equals("")) {
throw new IllegalArgumentException(
"An element of protocols was null/empty");
}
}
applicationProtocols = tempProtocols;
--- 666,676 ----
}
String[] tempProtocols = protocols.clone();
for (String p : tempProtocols) {
! if (p == null || p.isEmpty()) {
throw new IllegalArgumentException(
"An element of protocols was null/empty");
}
}
applicationProtocols = tempProtocols;
< prev index next >