From e527a340051b55a6f05d05f397d82ec797165163 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 3 May 2013 14:49:28 +0200 Subject: Java cleanup, convert more Vector to ArrayList Change-Id: Icb807382eaf50f515f2c9dfada0c061414baed33 --- toolkit/test/accessibility/AccessibleTreeHandler.java | 4 ++-- toolkit/test/accessibility/NodeHandler.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'toolkit') diff --git a/toolkit/test/accessibility/AccessibleTreeHandler.java b/toolkit/test/accessibility/AccessibleTreeHandler.java index 3e4a72c5ec2d..a6945a532079 100644 --- a/toolkit/test/accessibility/AccessibleTreeHandler.java +++ b/toolkit/test/accessibility/AccessibleTreeHandler.java @@ -105,7 +105,7 @@ class AccessibleTreeHandler if ((nIndex >= 0) || (nIndex <= maChildList.size())) { aChild = NodeFactory.Instance().createDefaultNode (xChild, aParent); - maChildList.insertElementAt (aChild, nIndex); + maChildList.add (nIndex, aChild); } } } @@ -121,7 +121,7 @@ class AccessibleTreeHandler { synchronized (maChildList) { - maChildList.setElementAt (null, 0); + maChildList.set (0, null); } } } diff --git a/toolkit/test/accessibility/NodeHandler.java b/toolkit/test/accessibility/NodeHandler.java index 18c127fb5d48..efa8fb09e1a8 100644 --- a/toolkit/test/accessibility/NodeHandler.java +++ b/toolkit/test/accessibility/NodeHandler.java @@ -76,7 +76,7 @@ abstract class NodeHandler aChild = createChild (aParent, nIndex); if (aChild == null) aChild = new StringNode ("could not create child", aParent); - maChildList.setElementAt (aChild, nIndex); + maChildList.set (nIndex, aChild); } return aChild; } @@ -99,7 +99,7 @@ abstract class NodeHandler synchronized (maChildList) { System.out.println (" removing child at position " + nIndex + ": " - + maChildList.elementAt (nIndex)); + + maChildList.get (nIndex)); maChildList.remove (nIndex); } } -- cgit