src/share/classes/com/sun/jndi/url/rmi/rmiURLContextFactory.java

Print this page

        

@@ -61,11 +61,11 @@
                     "rmiURLContextFactory.getObjectInstance: " +
                     "argument must be an RMI URL String or an array of them"));
         }
     }
 
-    private static Object getUsingURL(String url, Hashtable env)
+    private static Object getUsingURL(String url, Hashtable<?,?> env)
             throws NamingException
     {
         rmiURLContext urlCtx = new rmiURLContext(env);
         try {
             return urlCtx.lookup(url);

@@ -77,11 +77,11 @@
     /*
      * Try each URL until lookup() succeeds for one of them.
      * If all URLs fail, throw one of the exceptions arbitrarily.
      * Not pretty, but potentially more informative than returning null.
      */
-    private static Object getUsingURLs(String[] urls, Hashtable env)
+    private static Object getUsingURLs(String[] urls, Hashtable<?,?> env)
             throws NamingException
     {
         if (urls.length == 0) {
             throw (new ConfigurationException(
                     "rmiURLContextFactory: empty URL array"));