directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1140978 - /directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Date Wed, 29 Jun 2011 06:59:59 GMT
Author: pamarcelot
Date: Wed Jun 29 06:59:59 2011
New Revision: 1140978

URL: http://svn.apache.org/viewvc?rev=1140978&view=rev
Log:
Minor cleaning in controls conversion.
Applied formatting.

Modified:
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java?rev=1140978&r1=1140977&r2=1140978&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Wed Jun 29 06:59:59 2011
@@ -400,16 +400,16 @@ public class DirectoryApiConnectionWrapp
                                 gssApiRequest.setUsername( bindPrincipal );
                                 gssApiRequest.setCredentials( bindPassword );
                                 gssApiRequest.setQualityOfProtection( connection
-                                                                .getConnectionParameter().getSaslQop()
);
+                                    .getConnectionParameter().getSaslQop() );
                                 gssApiRequest.setSecurityStrength( connection
-                                                                .getConnectionParameter()
-                                                                .getSaslSecurityStrength()
);
+                                    .getConnectionParameter()
+                                    .getSaslSecurityStrength() );
                                 gssApiRequest.setMutualAuthentication( connection
-                                                                .getConnectionParameter()
-                                                                .isSaslMutualAuthentication()
);
+                                    .getConnectionParameter()
+                                    .isSaslMutualAuthentication() );
                                 gssApiRequest
-                                                                .setLoginModuleConfiguration(
new InnerConfiguration(
-                                                                    krb5LoginModule ) );
+                                    .setLoginModuleConfiguration( new InnerConfiguration(
+                                        krb5LoginModule ) );
 
                                 switch ( connection.getConnectionParameter().getKrb5Configuration()
)
                                 {
@@ -618,12 +618,7 @@ public class DirectoryApiConnectionWrapp
 
             for ( int i = 0; i < controls.length; i++ )
             {
-                Control control = controls[i];
-
-                org.apache.directory.shared.ldap.model.message.Control returningControl;
-                returningControl = ldapConnection.getCodecService().fromJndiControl( control
);
-
-                returningControls[i] = returningControl;
+                returningControls[i] = ldapConnection.getCodecService().fromJndiControl(
controls[i] );
             }
 
             return returningControls;



Mime
View raw message