directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1786291 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/syntaxCheckers/BooleanSyntaxChecker.java
Date Fri, 10 Mar 2017 06:34:58 GMT
Author: elecharny
Date: Fri Mar 10 06:34:58 2017
New Revision: 1786291

URL: http://svn.apache.org/viewvc?rev=1786291&view=rev
Log:
Added a static Instance to avoid creating a new one every time we need it

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/syntaxCheckers/BooleanSyntaxChecker.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/syntaxCheckers/BooleanSyntaxChecker.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/syntaxCheckers/BooleanSyntaxChecker.java?rev=1786291&r1=1786290&r2=1786291&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/syntaxCheckers/BooleanSyntaxChecker.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/syntaxCheckers/BooleanSyntaxChecker.java
Fri Mar 10 06:34:58 2017
@@ -42,6 +42,11 @@ public class BooleanSyntaxChecker extend
 {
     /** A logger for this class */
     private static final Logger LOG = LoggerFactory.getLogger( BooleanSyntaxChecker.class
);
+    
+    /**
+     * A public instance of this SyntaxChecker
+     */
+    public static final BooleanSyntaxChecker INSTANCE = new BooleanSyntaxChecker();
 
 
     /**



Mime
View raw message