jdk/src/share/classes/sun/net/www/protocol/mailto/Handler.java
changeset 10596 39b3a979e600
parent 5506 202f599c92aa
child 14342 8435a30053c1
equal deleted inserted replaced
10595:c5be3e19fbab 10596:39b3a979e600
   137             if (allwhites)
   137             if (allwhites)
   138                 nogood = true;
   138                 nogood = true;
   139         }
   139         }
   140         if (nogood)
   140         if (nogood)
   141             throw new RuntimeException("No email address");
   141             throw new RuntimeException("No email address");
   142         setURL(u, protocol, host, port, file, null);
   142         setURLHandler(u, protocol, host, port, file, null);
       
   143     }
       
   144 
       
   145     /**
       
   146      * This method is used to suppress the deprecated warning
       
   147      *
       
   148      * @param   u the URL to receive the result of parsing the spec
       
   149      * @param   spec the URL string to parse
       
   150      * @param   start the character position to start parsing at.  This is
       
   151      *          just past the ':'.
       
   152      * @param   limit the character position to stop parsing at.
       
   153      */
       
   154     @SuppressWarnings("deprecation")
       
   155     private void setURLHandler(URL u, String protocol, String host, int port, String file, String ref) {
       
   156         setURL(u,protocol,host,port,file,null);
   143     }
   157     }
   144 }
   158 }