diff options
author | Harvey Harrison <[email protected]> | 2012-06-27 10:10:29 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-06-27 10:10:29 -0700 |
commit | 09833f3d98cb157ea3bf1ae3a6e53f372e65239f (patch) | |
tree | fb7fb7ede2c4f70601cf51dc51263448d4295c74 | |
parent | b8723d4fe3e39bbcd66af8aca33440181a49191c (diff) |
j3dcore: annotate list in OrderedPath
Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r-- | src/classes/share/javax/media/j3d/OrderedPath.java | 15 |
1 files 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<OrderedPathElement> pathElements = new ArrayList<OrderedPathElement>(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<OrderedPathElement>(pathElements); + return path; +} void printPath() { System.err.println("orderedPath: ["); - OrderedPathElement ope; for (int i=0; i<pathElements.size(); i++) { - ope = (OrderedPathElement)pathElements.get(i); + OrderedPathElement ope = pathElements.get(i); System.err.println("(" + ope.orderedGroup + "," + ope.childId); } System.err.println("]"); |