jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1049939 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core: AbstractNodeData.java NodeImpl.java RepositoryChecker.java
Date Thu, 16 Dec 2010 11:42:26 GMT
Author: angela
Date: Thu Dec 16 11:42:26 2010
New Revision: 1049939

URL: http://svn.apache.org/viewvc?rev=1049939&view=rev
Log:
minor improvement

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/AbstractNodeData.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryChecker.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/AbstractNodeData.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/AbstractNodeData.java?rev=1049939&r1=1049938&r2=1049939&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/AbstractNodeData.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/AbstractNodeData.java
Thu Dec 16 11:42:26 2010
@@ -64,7 +64,7 @@ public abstract class AbstractNodeData e
     }
 
     /**
-     * Return the associated node defintion.
+     * Return the associated node definition.
      *
      * @return node definition
      * @throws RepositoryException if the definition cannot be retrieved.
@@ -74,7 +74,7 @@ public abstract class AbstractNodeData e
     }
 
     /**
-     * Sets the associated node defintion.
+     * Sets the associated node definition.
      *
      * @param definition new node definition
      */
@@ -88,6 +88,7 @@ public abstract class AbstractNodeData e
      *
      * @return parent id
      */
+    @Override
     public NodeId getParentId() {
         if (primaryParentId != null) {
             return primaryParentId;
@@ -118,6 +119,7 @@ public abstract class AbstractNodeData e
     /**
      * {@inheritDoc}
      */
+    @Override
     public boolean isNode() {
         return true;
     }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java?rev=1049939&r1=1049938&r2=1049939&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Thu Dec 16 11:42:26 2010
@@ -324,9 +324,10 @@ public class NodeImpl extends ItemImpl i
         if (isTransient()) {
             return true;
         }
-        return !stateMgr.getDescendantTransientItemStates((NodeId) id).isEmpty();
+        return !stateMgr.getDescendantTransientItemStates(id).isEmpty();
     }
 
+    @Override
     protected synchronized ItemState getOrCreateTransientItemState()
             throws RepositoryException {
 
@@ -443,7 +444,7 @@ public class NodeImpl extends ItemImpl i
     /**
      * Creates a new property with the given name and <code>type</code> hint
and
      * property definition. If the given property definition is not of type
-     * <code>UNDEFINED</code>, then it takes precendence over the
+     * <code>UNDEFINED</code>, then it takes precedence over the
      * <code>type</code> hint.
      *
      * @param name the name of the property to create.
@@ -836,6 +837,7 @@ public class NodeImpl extends ItemImpl i
         return sessionContext.getNodeTypeManager().getPropertyDefinition(pd);
     }
 
+    @Override
     protected void makePersistent() throws InvalidItemStateException {
         if (!isTransient()) {
             log.debug(this + " (" + id + "): there's no transient state to persist");
@@ -1349,6 +1351,7 @@ public class NodeImpl extends ItemImpl i
     /**
      * @see ItemImpl#getQName()
      */
+    @Override
     public Name getQName() throws RepositoryException {
         HierarchyManager hierMgr = sessionContext.getHierarchyManager();
         Name name;
@@ -1664,6 +1667,7 @@ public class NodeImpl extends ItemImpl i
     /**
      * {@inheritDoc}
      */
+    @Override
     public boolean isNode() {
         return true;
     }
@@ -1671,6 +1675,7 @@ public class NodeImpl extends ItemImpl i
     /**
      * {@inheritDoc}
      */
+    @Override
     public String getName() throws RepositoryException {
         return perform(new SessionOperation<String>() {
             public String perform(SessionContext context)
@@ -1698,6 +1703,7 @@ public class NodeImpl extends ItemImpl i
     /**
      * {@inheritDoc}
      */
+    @Override
     public void accept(ItemVisitor visitor) throws RepositoryException {
         // check state of this instance
         sanityCheck();
@@ -1708,6 +1714,7 @@ public class NodeImpl extends ItemImpl i
     /**
      * {@inheritDoc}
      */
+    @Override
     public Node getParent() throws RepositoryException {
         return perform(new SessionOperation<Node>() {
             public Node perform(SessionContext context)
@@ -2754,6 +2761,7 @@ public class NodeImpl extends ItemImpl i
      *          concatenating the parent path + this node's name and index:
      *          rather use hierarchy manager to do this
      */
+    @Override
     public Path getPrimaryPath() throws RepositoryException {
         if (!isShareable()) {
             return super.getPrimaryPath();
@@ -3027,7 +3035,7 @@ public class NodeImpl extends ItemImpl i
      * {@inheritDoc}
      */
     public String getIdentifier() throws RepositoryException {
-        return ((NodeId) id).toString();
+        return id.toString();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryChecker.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryChecker.java?rev=1049939&r1=1049938&r2=1049939&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryChecker.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryChecker.java
Thu Dec 16 11:42:26 2010
@@ -98,7 +98,7 @@ class RepositoryChecker {
                         "Failed to fix workspace inconsistencies", e);
             }
         } else {
-            log.info("No repository inconcistencies found");
+            log.info("No repository inconsistencies found");
         }
     }
 



Mime
View raw message