Java5 update - convert Vector to ArrayList
Change-Id: Ic6e7946a065d6667e3cf620811102714817f11a2
This commit is contained in:
committed by
Michael Stahl
parent
48794812ba
commit
9eb8eae4e1
@@ -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);
|
||||
|
@@ -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) {
|
||||
}
|
||||
|
Reference in New Issue
Block a user