# HG changeset patch # User darcy # Date 1405557913 25200 # Node ID 1d036fa8c9c4b480360b46a214b38f901445be60 # Parent d461312cb89fddd6891ec97ef9ee9b026c08a5c4 8050798: New unchecked warning introduced in com.sun.jndi.ldap.Connection Reviewed-by: lancea diff -r d461312cb89f -r 1d036fa8c9c4 jdk/src/share/classes/com/sun/jndi/ldap/Connection.java --- a/jdk/src/share/classes/com/sun/jndi/ldap/Connection.java Wed Jul 16 14:39:59 2014 -0700 +++ b/jdk/src/share/classes/com/sun/jndi/ldap/Connection.java Wed Jul 16 17:45:13 2014 -0700 @@ -258,9 +258,9 @@ // create the factory + @SuppressWarnings("unchecked") Class socketFactoryClass = - (Class) Obj.helper.loadClass - (socketFactory); + (Class)Obj.helper.loadClass(socketFactory); Method getDefault = socketFactoryClass.getMethod("getDefault", new Class[]{}); SocketFactory factory = (SocketFactory) getDefault.invoke(null, new Object[]{});