summaryrefslogtreecommitdiff
path: root/bean
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-03 14:35:04 +0200
committerNoel Grandin <noel@peralex.com>2013-05-06 11:45:50 +0200
commit587c59fbc931b12f4d63d077a78bcaa43ffbf83d (patch)
treec1984991960664faf41ea3e32e3804404aecb22d /bean
parent95e1ecbf89f75e2b298b931c3cc2e0d5655c31ed (diff)
Java cleanup, Convert Vector to ArrayList
Change-Id: I323a6625f93347e69f3114fc10cb04dc759a539f
Diffstat (limited to 'bean')
-rw-r--r--bean/test/applet/oooapplet/OOoViewer.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/bean/test/applet/oooapplet/OOoViewer.java b/bean/test/applet/oooapplet/OOoViewer.java
index e09f78e88821..6ea9270b199f 100644
--- a/bean/test/applet/oooapplet/OOoViewer.java
+++ b/bean/test/applet/oooapplet/OOoViewer.java
@@ -124,7 +124,7 @@ public class OOoViewer extends Applet {
final class CustomURLClassLoader extends URLClassLoader {
- private Vector<URL> resourcePaths;
+ private ArrayList<URL> resourcePaths;
public CustomURLClassLoader( URL[] urls ) {
super( urls );
@@ -163,7 +163,7 @@ final class CustomURLClassLoader extends URLClassLoader {
}
public void addResourcePath(URL rurl) {
- if (resourcePaths == null) resourcePaths = new Vector<URL>();
+ if (resourcePaths == null) resourcePaths = new ArrayList<URL>();
resourcePaths.add(rurl);
}
@@ -175,10 +175,8 @@ final class CustomURLClassLoader extends URLClassLoader {
return result;
}
- URL u = null;
URI uri = null;
- for (Enumeration<URL> e = resourcePaths.elements(); e.hasMoreElements();) {
- u = e.nextElement();
+ for (URL u : resourcePaths) {
if (u.getProtocol().startsWith("file")){
try {
File f1 = new File(u.getPath());