directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1787353 - in /directory/shared/branches/shared-value: ldap/schema/data/src/test/java/org/apache/directory/api/ldap/schema/loader/SchemaManagerDelTest.java util/src/main/java/org/apache/directory/api/util/Strings.java
Date Fri, 17 Mar 2017 13:02:33 GMT
Author: elecharny
Date: Fri Mar 17 13:02:33 2017
New Revision: 1787353

URL: http://svn.apache.org/viewvc?rev=1787353&view=rev
Log:
o Added a constant for String[]{}
o Fixed a concurent test with SyntaxCheckers

Modified:
    directory/shared/branches/shared-value/ldap/schema/data/src/test/java/org/apache/directory/api/ldap/schema/loader/SchemaManagerDelTest.java
    directory/shared/branches/shared-value/util/src/main/java/org/apache/directory/api/util/Strings.java

Modified: directory/shared/branches/shared-value/ldap/schema/data/src/test/java/org/apache/directory/api/ldap/schema/loader/SchemaManagerDelTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/ldap/schema/data/src/test/java/org/apache/directory/api/ldap/schema/loader/SchemaManagerDelTest.java?rev=1787353&r1=1787352&r2=1787353&view=diff
==============================================================================
--- directory/shared/branches/shared-value/ldap/schema/data/src/test/java/org/apache/directory/api/ldap/schema/loader/SchemaManagerDelTest.java
(original)
+++ directory/shared/branches/shared-value/ldap/schema/data/src/test/java/org/apache/directory/api/ldap/schema/loader/SchemaManagerDelTest.java
Fri Mar 17 13:02:33 2017
@@ -1018,7 +1018,7 @@ public class SchemaManagerDelTest
         int scrSize = schemaManager.getSyntaxCheckerRegistry().size();
         int goidSize = schemaManager.getGlobalOidRegistry().size();
 
-        SyntaxChecker sc = BooleanSyntaxChecker.INSTANCE;
+        SyntaxChecker sc = new BooleanSyntaxChecker();
         sc.setOid( "0.1.1" );
         assertTrue( schemaManager.add( sc ) );
 
@@ -1051,7 +1051,7 @@ public class SchemaManagerDelTest
         int scrSize = schemaManager.getSyntaxCheckerRegistry().size();
         int goidSize = schemaManager.getGlobalOidRegistry().size();
 
-        SyntaxChecker sc = BooleanSyntaxChecker.INSTANCE;
+        SyntaxChecker sc = new BooleanSyntaxChecker();
         sc.setOid( "0.0" );
         assertFalse( schemaManager.delete( sc ) );
 

Modified: directory/shared/branches/shared-value/util/src/main/java/org/apache/directory/api/util/Strings.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/util/src/main/java/org/apache/directory/api/util/Strings.java?rev=1787353&r1=1787352&r2=1787353&view=diff
==============================================================================
--- directory/shared/branches/shared-value/util/src/main/java/org/apache/directory/api/util/Strings.java
(original)
+++ directory/shared/branches/shared-value/util/src/main/java/org/apache/directory/api/util/Strings.java
Fri Mar 17 13:02:33 2017
@@ -234,6 +234,9 @@ public final class Strings
     
     /** An empty String */
     public static final String EMPTY_STRING = "";
+    
+    /** An empty String array */
+    public static final String[] EMPTY_STRING_ARRAY = new String[]{};
 
 
     /**



Mime
View raw message