< prev index next >
src/java.xml/share/classes/javax/xml/catalog/Util.java
Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad
@@ -219,11 +219,11 @@
* @param sysPropertyName the name of system property
* @return the catalog file paths, or null if not found.
*/
static String[] getCatalogFiles(String sysPropertyName) {
String value = SecuritySupport.getJAXPSystemProperty(sysPropertyName);
- if (value != null && !value.equals("")) {
+ if (value != null && !value.isEmpty()) {
return value.split(";");
}
return null;
}
< prev index next >