--- old/src/share/classes/javax/naming/ldap/InitialLdapContext.java 2011-07-27 17:27:19.570670500 -0700 +++ new/src/share/classes/javax/naming/ldap/InitialLdapContext.java 2011-07-27 17:27:18.880601500 -0700 @@ -129,15 +129,16 @@ * @see #reconnect * @see LdapContext#reconnect */ + @SuppressWarnings("unchecked") public InitialLdapContext(Hashtable environment, Control[] connCtls) throws NamingException { super(true); // don't initialize yet // Clone environment since caller owns it. - Hashtable env = (environment == null) - ? new Hashtable(11) - : (Hashtable)environment.clone(); + Hashtable env = (environment == null) + ? new Hashtable<>(11) + : (Hashtable)environment.clone(); // Put connect controls into environment. Copy them first since // caller owns the array.