directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 56575 - incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema
Date Thu, 04 Nov 2004 07:37:05 GMT
Author: akarasulu
Date: Wed Nov  3 23:37:04 2004
New Revision: 56575

Modified:
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DnComparator.java
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DnSyntaxChecker.java
Log:
not longer throw IO exception so we throw NamingExceptions

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DnComparator.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DnComparator.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DnComparator.java
Wed Nov  3 23:37:04 2004
@@ -17,7 +17,6 @@
 package org.apache.ldap.common.schema ;
 
 
-import java.io.IOException ;
 import java.util.Comparator ;
 
 import javax.naming.Name ;
@@ -52,17 +51,9 @@
      * Creates a default schema-less DN Comparator whose parser does not attempt
      * to normalize assertion valeus while comparing DN components.
      */
-    public DnComparator()
+    public DnComparator() throws NamingException
     {
-        try
-        {
-            parser = new DnParser() ;
-        }
-        catch ( IOException e )
-        {
-            // Should never really be thrown
-            e.printStackTrace() ;
-        }
+        parser = new DnParser() ;
     }
     
     
@@ -71,17 +62,9 @@
      * use schema normalizers for attribute equality matching rules to
      * normalize assertion values.
      */
-    public DnComparator( NameComponentNormalizer normalizer )
+    public DnComparator( NameComponentNormalizer normalizer ) throws NamingException
     {
-        try
-        {
-            parser = new DnParser( normalizer ) ;
-        }
-        catch ( IOException e )
-        {
-            // Should never really be thrown
-            e.printStackTrace() ;
-        }
+        parser = new DnParser( normalizer ) ;
     }
     
     

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DnSyntaxChecker.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DnSyntaxChecker.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DnSyntaxChecker.java
Wed Nov  3 23:37:04 2004
@@ -51,7 +51,7 @@
      * 
      * @param oid the OID of the syntax
      */
-    public DnSyntaxChecker( String oid )
+    public DnSyntaxChecker( String oid ) throws NamingException
     {
         this.oid = oid ;
 
@@ -61,16 +61,7 @@
          * well we don't care what the value of an attribute assertion is
          * we only care that the DN containing it is properly formed.
          */
-
-        try
-        {
-            parser = new DnParser() ;
-        }
-        catch ( IOException e )
-        {
-            // Should never really be thrown
-            e.printStackTrace() ;
-        }
+        parser = new DnParser() ;
     }
 
 

Mime
View raw message