jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1334430 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java
Date Sat, 05 May 2012 15:30:24 GMT
Author: mduerig
Date: Sat May  5 15:30:24 2012
New Revision: 1334430

URL: http://svn.apache.org/viewvc?rev=1334430&view=rev
Log:
OAK-61: split NodeImpl into NodeImpl and NodeDelegate
remove throws from methods that don't throw

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java?rev=1334430&r1=1334429&r2=1334430&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/NodeDelegate.java
Sat May  5 15:30:24 2012
@@ -57,11 +57,11 @@ public class NodeDelegate extends ItemDe
         return new NodeDelegate(sessionDelegate, added);
     }
 
-    Iterator<NodeDelegate> getChildren() throws RepositoryException {
+    Iterator<NodeDelegate> getChildren() {
         return nodeDelegateIterator(getTree().getChildren().iterator());
     }
 
-    long getChildrenCount() throws RepositoryException {
+    long getChildrenCount() {
         return getTree().getChildrenCount();
     }
 
@@ -96,13 +96,11 @@ public class NodeDelegate extends ItemDe
         return propertyDelegateIterator(getTree().getProperties().iterator());
     }
 
-    long getPropertyCount() throws RepositoryException {
+    long getPropertyCount() {
         return getTree().getPropertyCount();
     }
 
-    PropertyDelegate getPropertyOrNull(String relOakPath)
-            throws RepositoryException {
-
+    PropertyDelegate getPropertyOrNull(String relOakPath) {
         Tree parent = getTree(PathUtils.getParentPath(relOakPath));
         if (parent == null) {
             return null;
@@ -118,20 +116,16 @@ public class NodeDelegate extends ItemDe
         return sessionDelegate;
     }
 
-    void remove() throws RepositoryException {
+    void remove() {
         getTree().getParent().removeChild(getName());
     }
 
-    PropertyDelegate setProperty(String oakName, CoreValue value)
-            throws RepositoryException {
-
+    PropertyDelegate setProperty(String oakName, CoreValue value) {
         getTree().setProperty(oakName, value);
         return getPropertyOrNull(oakName);
     }
 
-    PropertyDelegate setProperty(String oakName, List<CoreValue> value)
-            throws RepositoryException {
-
+    PropertyDelegate setProperty(String oakName, List<CoreValue> value) {
         getTree().setProperty(oakName, value);
         return getPropertyOrNull(oakName);
     }



Mime
View raw message