incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1453420 - /sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCreateOperation.java
Date Wed, 06 Mar 2013 16:50:13 GMT
Author: cziegeler
Date: Wed Mar  6 16:50:12 2013
New Revision: 1453420

URL: http://svn.apache.org/r1453420
Log:
Code cleanup : remove unused throws declaration, RepositoryException covers everything

Modified:
    sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCreateOperation.java

Modified: sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCreateOperation.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCreateOperation.java?rev=1453420&r1=1453419&r2=1453420&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCreateOperation.java
(original)
+++ sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCreateOperation.java
Wed Mar  6 16:50:12 2013
@@ -27,14 +27,9 @@ import java.util.Set;
 import java.util.regex.Pattern;
 
 import javax.jcr.Node;
-import javax.jcr.PathNotFoundException;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
-import javax.jcr.lock.LockException;
-import javax.jcr.nodetype.ConstraintViolationException;
-import javax.jcr.nodetype.NoSuchNodeTypeException;
 import javax.jcr.nodetype.NodeType;
-import javax.jcr.version.VersionException;
 import javax.servlet.ServletException;
 
 import org.apache.sling.api.SlingHttpServletRequest;
@@ -120,8 +115,7 @@ abstract class AbstractCreateOperation e
                     final Map<String, RequestProperty> reqProperties,
                     final List<Modification> changes,
                     final VersioningConfiguration versioningConfiguration)
-   throws PathNotFoundException,
-            RepositoryException, NoSuchNodeTypeException, VersionException, ConstraintViolationException,
LockException {
+    throws RepositoryException {
         final String nodeType = getPrimaryType(reqProperties, path);
         if (nodeType != null) {
             final Resource rsrc = resolver.getResource(path);
@@ -155,8 +149,7 @@ abstract class AbstractCreateOperation e
                     final Map<String, RequestProperty> reqProperties,
                     final List<Modification> changes,
                     final VersioningConfiguration versioningConfiguration)
-    throws PathNotFoundException,
-            RepositoryException, NoSuchNodeTypeException, VersionException, ConstraintViolationException,
LockException {
+    throws RepositoryException {
         final String[] mixins = getMixinTypes(reqProperties, path);
         if (mixins != null) {
 



Mime
View raw message