src/java.naming/share/classes/com/sun/jndi/ldap/LdapURL.java
changeset 52902 e3398b2e1ab0
parent 47216 71c04702a3d5
equal deleted inserted replaced
52901:3ba9ff4d4aaf 52902:e3398b2e1ab0
   195     private void parsePathAndQuery() throws MalformedURLException,
   195     private void parsePathAndQuery() throws MalformedURLException,
   196         UnsupportedEncodingException {
   196         UnsupportedEncodingException {
   197 
   197 
   198         // path begins with a '/' or is empty
   198         // path begins with a '/' or is empty
   199 
   199 
   200         if (path.equals("")) {
   200         if (path.isEmpty()) {
   201             return;
   201             return;
   202         }
   202         }
   203 
   203 
   204         DN = path.startsWith("/") ? path.substring(1) : path;
   204         DN = path.startsWith("/") ? path.substring(1) : path;
   205         if (DN.length() > 0) {
   205         if (DN.length() > 0) {