diff options
author | Chris Goldthorpe | 2011-01-07 21:40:16 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2011-01-07 21:40:16 +0000 |
commit | b6e9f30e0aab46a8f33d4b52cdf9f5134de15132 (patch) | |
tree | 1f8819d969c420145c571ca1a772721dcb15d43b /org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc | |
parent | e1e5825f8b39c2ee117c82968696431e83bcef14 (diff) | |
download | eclipse.platform.ua-b6e9f30e0aab46a8f33d4b52cdf9f5134de15132.tar.gz eclipse.platform.ua-b6e9f30e0aab46a8f33d4b52cdf9f5134de15132.tar.xz eclipse.platform.ua-b6e9f30e0aab46a8f33d4b52cdf9f5134de15132.zip |
Fix warnings when compiled with Java 5.0
Diffstat (limited to 'org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc')
-rw-r--r-- | org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/EnabledTopicTest.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/EnabledTopicTest.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/EnabledTopicTest.java index da913ca02..fc60f8a21 100644 --- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/EnabledTopicTest.java +++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/toc/EnabledTopicTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2008 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 @@ -30,7 +30,7 @@ public class EnabledTopicTest extends TestCase { private String label; private boolean isEnabled; - private List children = new ArrayList(); + private List<ITopic> children = new ArrayList<ITopic>(); public ETopic(String label, boolean isEnabled) { this.label = label; @@ -38,7 +38,7 @@ public class EnabledTopicTest extends TestCase { } public ITopic[] getSubtopics() { - return (ITopic[])children.toArray(new ITopic[children.size()]); + return children.toArray(new ITopic[children.size()]); } public IUAElement[] getChildren() { @@ -78,8 +78,8 @@ public class EnabledTopicTest extends TestCase { private class EIndexEntry extends UAElement implements IIndexEntry { private String keyword; - private List topics = new ArrayList(); - private List subEntries = new ArrayList(); + private List<ITopic> topics = new ArrayList<ITopic>(); + private List<IIndexEntry> subEntries = new ArrayList<IIndexEntry>(); public EIndexEntry(String keyword) { super(keyword); @@ -99,18 +99,18 @@ public class EnabledTopicTest extends TestCase { } public IIndexEntry[] getSubentries() { - return (IIndexEntry[])subEntries.toArray(new IIndexEntry[subEntries.size()]); + return subEntries.toArray(new IIndexEntry[subEntries.size()]); } public ITopic[] getTopics() { - return (ITopic[])topics.toArray(new ITopic[topics.size()]); + return topics.toArray(new ITopic[topics.size()]); } public synchronized IUAElement[] getChildren() { - List all = new ArrayList(); + List<IUAElement> all = new ArrayList<IUAElement>(); all.addAll(subEntries); all.addAll(topics); - return (IUAElement[])all.toArray(new IUAElement[all.size()]); + return all.toArray(new IUAElement[all.size()]); } } |