src/share/classes/com/sun/jndi/toolkit/ctx/Continuation.java
Print this page
@@ -55,11 +55,11 @@
/**
* The environment used by the caller. Initialized by constructor and
* used when filling out a CannotProceedException.
*/
- protected Hashtable environment = null;
+ protected Hashtable<?,?> environment = null;
/**
* Indicates whether the Continuation instance indicates that the operation
* should be continued using the data in the Continuation.
* Typically, this is only false if an error has been encountered or if
@@ -92,11 +92,11 @@
* This becomes the Continuation's 'starter' and is used to
* calculate the "resolved name" when filling in a NamingException.
* @param environment The environment used by the caller. It is used
* when setting the "environment" of a CannotProceedException.
*/
- public Continuation(Name top, Hashtable environment) {
+ public Continuation(Name top, Hashtable<?,?> environment) {
super();
starter = top;
this.environment = environment;
}
@@ -152,12 +152,12 @@
starter.getPrefix(starter.size() -
remainingName.size()));
if ((e instanceof CannotProceedException)) {
CannotProceedException cpe = (CannotProceedException)e;
- Hashtable env = (environment == null ?
- new Hashtable(11) : (Hashtable)environment.clone());
+ Hashtable<?,?> env = (environment == null ?
+ new Hashtable<>(11) : (Hashtable<?,?>)environment.clone());
cpe.setEnvironment(env);
cpe.setAltNameCtx(resolvedContext);
cpe.setAltName(relativeResolvedName);
}