From 09833f3d98cb157ea3bf1ae3a6e53f372e65239f Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Wed, 27 Jun 2012 10:10:29 -0700 Subject: j3dcore: annotate list in OrderedPath Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/OrderedPath.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/classes/share/javax/media/j3d/OrderedPath.java b/src/classes/share/javax/media/j3d/OrderedPath.java index ddcc427..804aa81 100644 --- a/src/classes/share/javax/media/j3d/OrderedPath.java +++ b/src/classes/share/javax/media/j3d/OrderedPath.java @@ -29,24 +29,23 @@ package javax.media.j3d; import java.util.ArrayList; class OrderedPath extends Object { - ArrayList pathElements = new ArrayList(1); +ArrayList pathElements = new ArrayList(1); void addElementToPath(OrderedGroupRetained og, Integer orderedId) { pathElements.add(new OrderedPathElement(og, orderedId)); } - OrderedPath clonePath() { - OrderedPath path = new OrderedPath(); - path.pathElements = (ArrayList)pathElements.clone(); - return path; - } +OrderedPath clonePath() { + OrderedPath path = new OrderedPath(); + path.pathElements = new ArrayList(pathElements); + return path; +} void printPath() { System.err.println("orderedPath: ["); - OrderedPathElement ope; for (int i=0; i