changeset 25577:1d036fa8c9c4

8050798: New unchecked warning introduced in com.sun.jndi.ldap.Connection Reviewed-by: lancea
author darcy
date Wed, 16 Jul 2014 17:45:13 -0700
parents d461312cb89f
children f9ecfa57b573
files jdk/src/share/classes/com/sun/jndi/ldap/Connection.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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<? extends SocketFactory> socketFactoryClass =
-                    (Class<? extends SocketFactory>) Obj.helper.loadClass
-                    (socketFactory);
+                (Class<? extends SocketFactory>)Obj.helper.loadClass(socketFactory);
             Method getDefault =
                 socketFactoryClass.getMethod("getDefault", new Class<?>[]{});
             SocketFactory factory = (SocketFactory) getDefault.invoke(null, new Object[]{});