You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by an...@apache.org on 2007/02/16 15:57:54 UTC

svn commit: r508433 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/TransientISFactory.java

Author: angela
Date: Fri Feb 16 06:57:53 2007
New Revision: 508433

URL: http://svn.apache.org/viewvc?view=rev&rev=508433
Log:
#0000 - remove redundant cast

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/TransientISFactory.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/TransientISFactory.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/TransientISFactory.java?view=diff&rev=508433&r1=508432&r2=508433
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/TransientISFactory.java (original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/TransientISFactory.java Fri Feb 16 06:57:53 2007
@@ -81,7 +81,7 @@
      */
     public NodeState createRootState(NodeEntry entry) throws ItemStateException {
         // retrieve state to overlay
-        NodeState overlayedState = (NodeState) workspaceStateFactory.createRootState(entry);
+        NodeState overlayedState = workspaceStateFactory.createRootState(entry);
         return buildNodeState(overlayedState, Status.EXISTING);
     }
 
@@ -92,7 +92,7 @@
     public NodeState createNodeState(NodeId nodeId, NodeEntry entry)
         throws NoSuchItemStateException, ItemStateException {
         // retrieve state to overlay
-        NodeState overlayedState = (NodeState) workspaceStateFactory.createNodeState(nodeId, entry);
+        NodeState overlayedState = workspaceStateFactory.createNodeState(nodeId, entry);
         return buildNodeState(overlayedState, getInitialStatus(entry.getParent()));
     }
 
@@ -101,7 +101,7 @@
      * @see ItemStateFactory#createDeepNodeState(NodeId, NodeEntry)
      */
     public NodeState createDeepNodeState(NodeId nodeId, NodeEntry anyParent) throws NoSuchItemStateException, ItemStateException {
-        NodeState overlayedState = (NodeState) workspaceStateFactory.createDeepNodeState(nodeId, anyParent);
+        NodeState overlayedState = workspaceStateFactory.createDeepNodeState(nodeId, anyParent);
         return buildNodeState(overlayedState, getInitialStatus(anyParent));
     }
 
@@ -113,7 +113,7 @@
                                              PropertyEntry entry)
         throws NoSuchItemStateException, ItemStateException {
         // retrieve state to overlay
-        PropertyState overlayedState = (PropertyState) workspaceStateFactory.createPropertyState(propertyId, entry);
+        PropertyState overlayedState = workspaceStateFactory.createPropertyState(propertyId, entry);
         return buildPropertyState(overlayedState, getInitialStatus(entry.getParent()));
     }
 
@@ -121,7 +121,7 @@
      * @see ItemStateFactory#createDeepPropertyState(PropertyId, NodeEntry)
      */
     public PropertyState createDeepPropertyState(PropertyId propertyId, NodeEntry anyParent) throws NoSuchItemStateException, ItemStateException {
-        PropertyState overlayedState = (PropertyState) workspaceStateFactory.createDeepPropertyState(propertyId, anyParent);
+        PropertyState overlayedState = workspaceStateFactory.createDeepPropertyState(propertyId, anyParent);
         return buildPropertyState(overlayedState, getInitialStatus(anyParent));
     }