Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2011-01-07 21:14:07 +0000
committerChris Goldthorpe2011-01-07 21:14:07 +0000
commit24cc4393cffba154963666534eebed84021f4d1d (patch)
treead2a5faef683ed0f196820c2ab4d9501a383b199 /org.eclipse.ua.tests/base/org/eclipse/ua/tests/util
parentef7f37d50915179e67da4bf60b470848aa89291c (diff)
downloadeclipse.platform.ua-24cc4393cffba154963666534eebed84021f4d1d.tar.gz
eclipse.platform.ua-24cc4393cffba154963666534eebed84021f4d1d.tar.xz
eclipse.platform.ua-24cc4393cffba154963666534eebed84021f4d1d.zip
Fix warnings when compiled with Java 5.0
Diffstat (limited to 'org.eclipse.ua.tests/base/org/eclipse/ua/tests/util')
-rw-r--r--org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/ResourceFinder.java4
-rw-r--r--org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XMLUtil.java8
2 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/ResourceFinder.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/ResourceFinder.java
index 87b9cfa16..84f0dedcc 100644
--- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/ResourceFinder.java
+++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/ResourceFinder.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2002, 2008 IBM Corporation and others.
+ * Copyright (c) 2002, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -62,7 +62,7 @@ public class ResourceFinder {
* recursively traverses subdirectories if requested.
*/
private static URL[] findFiles(File[] files, String suffix, boolean recursive) {
- List list = new ArrayList();
+ List<URL> list = new ArrayList<URL>();
if (files != null) {
for (int i=0;i<files.length;++i) {
if (files[i].isDirectory()) {
diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XMLUtil.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XMLUtil.java
index b81b1d203..71b8b3627 100644
--- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XMLUtil.java
+++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XMLUtil.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2010 IBM Corporation and others.
+ * Copyright (c) 2006, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -77,14 +77,14 @@ public class XMLUtil extends Assert {
buf.append('<');
buf.append(qName);
- List list = new ArrayList();
+ List<String> list = new ArrayList<String>();
for (int i=0;i<attributes.getLength();++i) {
list.add(attributes.getQName(i));
}
Collections.sort(list);
- Iterator iter = list.iterator();
+ Iterator<String> iter = list.iterator();
while (iter.hasNext()) {
- String name = (String)iter.next();
+ String name = iter.next();
buf.append(' ');
buf.append(name);
buf.append('=');

Back to the top