jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r603828 - /jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java
Date Thu, 13 Dec 2007 06:00:26 GMT
Author: jukka
Date: Wed Dec 12 22:00:26 2007
New Revision: 603828

URL: http://svn.apache.org/viewvc?rev=603828&view=rev
Log:
JCR-1267: Removed an unreachable catch block
    - Patch by Ed Burnette

Modified:
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java?rev=603828&r1=603827&r2=603828&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java
Wed Dec 12 22:00:26 2007
@@ -16,6 +16,7 @@
  */
 package org.apache.jackrabbit.jcr2spi.nodetype;
 
+import org.apache.jackrabbit.conversion.IllegalNameException;
 import org.apache.jackrabbit.conversion.NamePathResolver;
 import org.apache.jackrabbit.conversion.NameResolver;
 import org.apache.jackrabbit.conversion.NameException;
@@ -847,16 +848,11 @@
         // format: node type name
         try {
             ntName = resolver.getQName(definition);
-        } catch (org.apache.jackrabbit.conversion.IllegalNameException ine) {
+        } catch (IllegalNameException ine) {
             String msg = "invalid node type name specified as value constraint: "
                     + definition;
             log.debug(msg);
             throw new InvalidConstraintException(msg, ine);
-        } catch (NameException e) {
-            String msg = "invalid node type name specified as value constraint: "
-                    + definition;
-            log.debug(msg);
-            throw new InvalidConstraintException(msg, e);
         } catch (NamespaceException e) {
             String msg = "invalid node type name specified as value constraint: "
                     + definition;



Mime
View raw message