--- old/src/share/classes/com/sun/jndi/toolkit/corba/CorbaUtils.java 2011-07-27 17:23:09.185634500 -0700 +++ new/src/share/classes/com/sun/jndi/toolkit/corba/CorbaUtils.java 2011-07-27 17:23:08.553571300 -0700 @@ -158,7 +158,7 @@ * Use all String properties from env for initializing ORB * @return A non-null ORB. */ - public static ORB getOrb(String server, int port, Hashtable env) { + public static ORB getOrb(String server, int port, Hashtable env) { // See if we can get info from environment Properties orbProp; @@ -169,7 +169,7 @@ orbProp = (Properties) env.clone(); } else { // Get all String properties - Enumeration envProp; + Enumeration envProp; orbProp = new Properties(); for (envProp = env.keys(); envProp.hasMoreElements();) { String key = (String)envProp.nextElement(); @@ -239,7 +239,7 @@ // Fields used for reflection of RMI-IIOP private static Method toStubMethod = null; private static Method connectMethod = null; - private static Class corbaStubClass = null; + private static Class corbaStubClass = null; /** * Initializes reflection method handles for RMI-IIOP. * @exception ClassNotFoundException javax.rmi.CORBA.* not available @@ -252,19 +252,19 @@ try { connectMethod = corbaStubClass.getMethod("connect", - new Class[] {org.omg.CORBA.ORB.class}); + new Class<>[] {org.omg.CORBA.ORB.class}); } catch (NoSuchMethodException e) { throw new IllegalStateException( "No method definition for javax.rmi.CORBA.Stub.connect(org.omg.CORBA.ORB)"); } - // Get javax.rmi.PortableRemoteObject method - Class proClass = Class.forName("javax.rmi.PortableRemoteObject"); + // Get javax.rmi.PortableRemoteObject class + Class proClass = Class.forName("javax.rmi.PortableRemoteObject"); - // Get javax.rmi.PortableRemoteObject(java.rmi.Remote) method + // Get javax.rmi.PortableRemoteObject.toStub(java.rmi.Remote) method try { toStubMethod = proClass.getMethod("toStub", - new Class[] {java.rmi.Remote.class}); + new Class[] {java.rmi.Remote.class}); } catch (NoSuchMethodException e) { throw new IllegalStateException(