directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1697151 - in /directory/apacheds/trunk: kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/ ldap-client-test/src/test/java/org/apache/directory/shared/client/api/ protocol-ldap/src/main/java/org/apache/directory/server/ldap/...
Date Sun, 23 Aug 2015 05:09:41 GMT
Author: elecharny
Date: Sun Aug 23 05:09:40 2015
New Revision: 1697151

URL: http://svn.apache.org/r1697151
Log:
o Used Strings.toLowerCase() instead of String.toLowerCase()
o Used Strings.toUpperCase() instead of String.toUpperCase()
o Removed a uselessimport

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosUtils.java
    directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionPoolTest.java
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/SyncReplSearchListener.java
    directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigWriter.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosUtils.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosUtils.java?rev=1697151&r1=1697150&r2=1697151&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosUtils.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosUtils.java
Sun Aug 23 05:09:40 2015
@@ -386,7 +386,7 @@ public class KerberosUtils
 
     public static String getAlgoNameFromEncType( EncryptionType encType )
     {
-        String cipherName = encType.getName().toLowerCase();
+        String cipherName = Strings.toLowerCase( encType.getName() );
 
         for ( String c : cipherAlgoMap.keySet() )
         {

Modified: directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionPoolTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionPoolTest.java?rev=1697151&r1=1697150&r2=1697151&view=diff
==============================================================================
--- directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionPoolTest.java
(original)
+++ directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionPoolTest.java
Sun Aug 23 05:09:40 2015
@@ -31,7 +31,6 @@ import org.apache.directory.api.ldap.mod
 import org.apache.directory.ldap.client.api.LdapConnection;
 import org.apache.directory.ldap.client.api.LdapConnectionConfig;
 import org.apache.directory.ldap.client.api.LdapConnectionPool;
-import org.apache.directory.ldap.client.api.LdapNetworkConnection;
 import org.apache.directory.ldap.client.api.ValidatingPoolableLdapConnectionFactory;
 import org.apache.directory.server.annotations.CreateLdapServer;
 import org.apache.directory.server.annotations.CreateTransport;

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/SyncReplSearchListener.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/SyncReplSearchListener.java?rev=1697151&r1=1697150&r2=1697151&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/SyncReplSearchListener.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/SyncReplSearchListener.java
Sun Aug 23 05:09:40 2015
@@ -79,9 +79,9 @@ public class SyncReplSearchListener impl
     /** The consumer configuration */
     private final ReplicaEventLog consumerMsgLog;
     
-    private static String replConsumerConfigDn = ServerDNConstants.REPL_CONSUMER_CONFIG_DN.toLowerCase();
-    private static String schemaDn = SchemaConstants.OU_SCHEMA.toLowerCase();
-    private static String replConsumerDn = ServerDNConstants.REPL_CONSUMER_DN_STR.toLowerCase();
+    private static String replConsumerConfigDn = Strings.toLowerCase( ServerDNConstants.REPL_CONSUMER_CONFIG_DN
);
+    private static String schemaDn = Strings.toLowerCase( SchemaConstants.OU_SCHEMA );
+    private static String replConsumerDn = Strings.toLowerCase( ServerDNConstants.REPL_CONSUMER_DN_STR
);
     
     /**
      * Create a new instance of a consumer listener
@@ -544,7 +544,7 @@ public class SyncReplSearchListener impl
         // server the DNs are all normalized and a simple string compare should
         // do the trick
         
-        String name = entry.getDn().getName().toLowerCase();
+        String name = Strings.toLowerCase( entry.getDn().getName() );
         
         if ( name.endsWith( replConsumerConfigDn ) ||
              name.endsWith( schemaDn ) ||

Modified: directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigWriter.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigWriter.java?rev=1697151&r1=1697150&r2=1697151&view=diff
==============================================================================
--- directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigWriter.java
(original)
+++ directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigWriter.java
Sun Aug 23 05:09:40 2015
@@ -40,6 +40,7 @@ import org.apache.directory.api.ldap.mod
 import org.apache.directory.api.ldap.model.name.Rdn;
 import org.apache.directory.api.ldap.model.schema.ObjectClass;
 import org.apache.directory.api.ldap.model.schema.SchemaManager;
+import org.apache.directory.api.util.Strings;
 import org.apache.directory.server.config.beans.AdsBaseBean;
 import org.apache.directory.server.config.beans.ConfigBean;
 
@@ -623,7 +624,7 @@ public class ConfigWriter
             else if ( value instanceof Boolean )
             {
                 // Value is a byte[]
-                attribute.add( value.toString().toUpperCase() );
+                attribute.add( Strings.toUpperCase( value.toString() ) );
             }
             else
             {



Mime
View raw message