You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2011/02/21 17:28:53 UTC
svn commit: r1073051 -
/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/Connection.java
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;
}