--- old/src/share/classes/sun/rmi/transport/tcp/TCPTransport.java Fri Feb 24 14:14:44 2012 +++ new/src/share/classes/sun/rmi/transport/tcp/TCPTransport.java Fri Feb 24 14:14:42 2012 @@ -119,7 +119,7 @@ /** client host for the current thread's connection */ private static final ThreadLocal - threadConnectionHandler = new ThreadLocal(); + threadConnectionHandler = new ThreadLocal<>(); /** endpoints for this transport */ private final LinkedList epList; @@ -129,7 +129,7 @@ private ServerSocket server = null; /** table mapping endpoints to channels */ private final Map> channelTable = - new WeakHashMap>(); + new WeakHashMap<>(); static final RMISocketFactory defaultSocketFactory = RMISocketFactory.getDefaultSocketFactory();