src/share/classes/com/sun/jndi/url/rmi/rmiURLContext.java
Print this page
@@ -24,11 +24,10 @@
*/
package com.sun.jndi.url.rmi;
import java.util.Hashtable;
-import java.rmi.registry.LocateRegistry;
import javax.naming.*;
import javax.naming.spi.ResolveResult;
import com.sun.jndi.toolkit.url.GenericURLContext;
import com.sun.jndi.rmi.registry.RegistryContext;
@@ -46,20 +45,20 @@
*
* @author Scott Seligman
*/
public class rmiURLContext extends GenericURLContext {
- public rmiURLContext(Hashtable env) {
+ public rmiURLContext(Hashtable<?,?> env) {
super(env);
}
/**
* Resolves the registry portion of "url" to the corresponding
* RMI registry, and returns the atomic object name as the
* remaining name.
*/
- protected ResolveResult getRootURLContext(String url, Hashtable env)
+ protected ResolveResult getRootURLContext(String url, Hashtable<?,?> env)
throws NamingException
{
if (!url.startsWith("rmi:")) {
throw (new IllegalArgumentException(
"rmiURLContext: name is not an RMI URL: " + url));