diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-27 18:08:48 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-29 22:03:02 +0200 |
commit | b9e203cb95e78782262c078891d4f0ac99850e1e (patch) | |
tree | 3358cce9c14db423c38794c3808a897215272644 /xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java | |
parent | d137d6ac1dd837f7f14ae1aad6ff072469f7aa8b (diff) |
Java5 update - convert Vector to ArrayList and Enumeration to Iterator
Change-Id: Iccb8250351fc1b0778b6be9870c12b9e057b23d1
Diffstat (limited to 'xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java index 305de052cf1a..035453459d3d 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java @@ -18,8 +18,8 @@ package org.openoffice.xmerge; -import java.util.Vector; -import java.util.Enumeration; +import java.util.ArrayList; +import java.util.Iterator; /** * <p><code>ConvertData</code> is used as a container for passing @@ -34,7 +34,7 @@ public class ConvertData { /** * Vector of <code>Document</code> objects. */ - private Vector v = new Vector(); + private ArrayList v = new ArrayList(); /** * Name of the <code>ConvertData</code> object. @@ -49,7 +49,7 @@ public class ConvertData { */ public void reset() { name = null; - v.removeAllElements(); + v.clear(); } /** @@ -89,8 +89,8 @@ public class ConvertData { * @return The <code>Enumeration</code> to access the * <code>Vector</code> of <code>Document</code> objects. */ - public Enumeration getDocumentEnumeration() { - Enumeration enumerate = v.elements(); + public Iterator getDocumentEnumeration() { + Iterator enumerate = v.iterator(); return (enumerate); } |