< 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,229 **** * @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("")) { return value.split(";"); } return null; } --- 219,229 ---- * @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.isEmpty()) { return value.split(";"); } return null; }
< prev index next >