directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1073051 - /directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/Connection.java
Date Mon, 21 Feb 2011 16:28:53 GMT
Author: pamarcelot
Date: Mon Feb 21 16:28:53 2011
New Revision: 1073051

URL: http://svn.apache.org/viewvc?rev=1073051&view=rev
Log:
Avoided unnecessary class cast.

Modified:
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/Connection.java

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/Connection.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/Connection.java?rev=1073051&r1=1073050&r2=1073051&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/Connection.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/Connection.java
Mon Feb 21 16:28:53 2011
@@ -158,7 +158,6 @@ public class Connection implements Conne
                 case 1:
                     return FOLLOW;
                 case 2:
-                    //return MANAGE;
                     return FOLLOW_MANUALLY;
                 case 3:
                     return FOLLOW_MANUALLY;
@@ -220,36 +219,36 @@ public class Connection implements Conne
 
 
     /**
-     * Gets a JNDI connection wrapper.
+     * Gets the JNDI connection wrapper.
      *
      * @return
-     *      a JNDI connection wrapper
+     *      the JNDI connection wrapper
      */
-    private JNDIConnectionWrapper getJndiConnectionWrapper()
+    private ConnectionWrapper getJndiConnectionWrapper()
     {
         if ( ( connectionWrapper == null ) || !( connectionWrapper instanceof JNDIConnectionWrapper
) )
         {
             connectionWrapper = new JNDIConnectionWrapper( this );
         }
 
-        return ( JNDIConnectionWrapper ) connectionWrapper;
+        return connectionWrapper;
     }
 
 
     /**
-     * Gets a Directory API connection wrapper.
+     * Gets the Directory API connection wrapper.
      *
      * @return
-     *      a Directory API connection wrapper
+     *      the Directory API connection wrapper
      */
-    private DirectoryApiConnectionWrapper getDirectoryApiConnectionWrapper()
+    private ConnectionWrapper getDirectoryApiConnectionWrapper()
     {
         if ( ( connectionWrapper == null ) || !( connectionWrapper instanceof DirectoryApiConnectionWrapper
) )
         {
             connectionWrapper = new DirectoryApiConnectionWrapper( this );
         }
 
-        return ( DirectoryApiConnectionWrapper ) connectionWrapper;
+        return connectionWrapper;
     }
 
 



Mime
View raw message