jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1072102 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/NodeState.java
Date Fri, 18 Feb 2011 18:43:42 GMT
Author: angela
Date: Fri Feb 18 18:43:42 2011
New Revision: 1072102

URL: http://svn.apache.org/viewvc?rev=1072102&view=rev
Log:
Missing @Override annotation, Remove redundant cast and redundant ';'

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/NodeState.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/NodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/NodeState.java?rev=1072102&r1=1072101&r2=1072102&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/NodeState.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/NodeState.java
Fri Feb 18 18:43:42 2011
@@ -114,6 +114,7 @@ public class NodeState extends ItemState
     /**
      * {@inheritDoc}
      */
+    @Override
     public synchronized void copy(ItemState state, boolean syncModCount) {
         synchronized (state) {
             NodeState nodeState = (NodeState) state;
@@ -136,6 +137,7 @@ public class NodeState extends ItemState
      *
      * @return always true
      */
+    @Override
     public final boolean isNode() {
         return true;
     }
@@ -143,6 +145,7 @@ public class NodeState extends ItemState
     /**
      * {@inheritDoc}
      */
+    @Override
     public NodeId getParentId() {
         return parentId;
     }
@@ -150,6 +153,7 @@ public class NodeState extends ItemState
     /**
      * {@inheritDoc}
      */
+    @Override
     public ItemId getId() {
         return id;
     }
@@ -341,7 +345,7 @@ public class NodeState extends ItemState
      */
     public boolean renameChildNodeEntry(Name oldName, int index,
                                                      Name newName) {
-        ChildNodeEntry oldEntry = childNodeEntries.get(oldName, index);;
+        ChildNodeEntry oldEntry = childNodeEntries.get(oldName, index);
         if (oldEntry != null) {
             return renameChildNodeEntry(oldEntry.getId(), newName);
         }
@@ -779,7 +783,7 @@ public class NodeState extends ItemState
                         for (int j = i; j < ours.size(); j++) {
                             if (ours.get(j).getId().equals(other.getId())) {
                                 // found it
-                                entry = (ChildNodeEntry) ours.get(j);
+                                entry = ours.get(j);
                                 break;
                             }
                         }
@@ -849,6 +853,7 @@ public class NodeState extends ItemState
      * If the listener passed is at the same time a <code>NodeStateListener</code>
      * we remember it as well.
      */
+    @Override
     public void setContainer(ItemStateListener listener) {
         if (listener instanceof NodeStateListener) {
             if (this.listener != null) {



Mime
View raw message