aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-05-08 15:45:58 -0700
committerHarvey Harrison <[email protected]>2012-05-08 15:45:58 -0700
commit5863690729b60465375e00e78cb0677b56994182 (patch)
treeaaaaae5f2d6372422731e4346e1e736c36b22668 /src/classes
parentad9e0e16f1419bb0323a10bdbbef9fc9215d1157 (diff)
j3dcore: remove some unneeded casts from NodeRetained
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes')
-rw-r--r--src/classes/share/javax/media/j3d/NodeRetained.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/classes/share/javax/media/j3d/NodeRetained.java b/src/classes/share/javax/media/j3d/NodeRetained.java
index e9c0ad1..d820a44 100644
--- a/src/classes/share/javax/media/j3d/NodeRetained.java
+++ b/src/classes/share/javax/media/j3d/NodeRetained.java
@@ -317,13 +317,13 @@ ArrayList<BranchGroupRetained[]> branchGroupPaths = new ArrayList<BranchGroupRet
this.parent = parent;
}
- /**
- * Returns the parent of the node.
- * @return the parent.
- */
- NodeRetained getParent() {
- return (NodeRetained)parent;
- }
+/**
+ * Returns the parent of the node.
+ * @return the parent.
+ */
+NodeRetained getParent() {
+ return parent;
+}
// Transform the input bound by the current LocalToVWorld
void transformBounds(SceneGraphPath path, Bounds bound) {
@@ -364,7 +364,7 @@ ArrayList<BranchGroupRetained[]> branchGroupPaths = new ArrayList<BranchGroupRet
}
else {
- NodeRetained nodeParentR =(NodeRetained)nodeR.getParent();
+ NodeRetained nodeParentR = nodeR.getParent();
if(nodeParentR == null) {
// Base case. It has to be a BG attached to a locale.
@@ -376,7 +376,7 @@ ArrayList<BranchGroupRetained[]> branchGroupPaths = new ArrayList<BranchGroupRet
}
}
else {
- computeLocalToVworld(caller, (NodeRetained)nodeParentR, key, l2Vw);
+ computeLocalToVworld(caller, nodeParentR, key, l2Vw);
}