Java5 update - convert Vector to ArrayList

Change-Id: Ic6e7946a065d6667e3cf620811102714817f11a2
This commit is contained in:
Noel Grandin
2012-06-28 14:29:32 +02:00
committed by Michael Stahl
parent 48794812ba
commit 9eb8eae4e1
2 changed files with 4 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ public class AccessibleEditableTextImpl extends AccessibleTextImpl implements ja
/** Sets the attributes for the text between two indices */
public void setAttributes(int startIndex, int endIndex, javax.swing.text.AttributeSet as) {
java.util.Vector propertyValues = new java.util.Vector();
java.util.ArrayList propertyValues = new java.util.ArrayList();
// Convert Alignment attribute
Object attribute = as.getAttribute(StyleConstants.Alignment);

View File

@@ -24,7 +24,7 @@ import com.sun.star.uno.UnoRuntime;
public class Menu extends AbstractButton
implements javax.accessibility.Accessible {
private java.util.Vector children;
private java.util.ArrayList children;
protected XAccessibleSelection unoAccessibleSelection = null;
protected Menu(XAccessible xAccessible,
@@ -34,7 +34,7 @@ public class Menu extends AbstractButton
try {
// Create a vector with the correct initial capacity
int count = unoAccessibleContext.getAccessibleChildCount();
children = new java.util.Vector(count);
children = new java.util.ArrayList(count);
// Fill the vector with objects
for (int i = 0; i < count; i++) {
@@ -52,7 +52,7 @@ public class Menu extends AbstractButton
}
if (children == null) {
children = new java.util.Vector(0);
children = new java.util.ArrayList(0);
}
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
}