diff options
author | Chris Goldthorpe | 2011-01-07 21:34:57 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2011-01-07 21:34:57 +0000 |
commit | e1e5825f8b39c2ee117c82968696431e83bcef14 (patch) | |
tree | db3b10b53613bd8fc8841538089d3130363ffbf9 /org.eclipse.ua.tests/intro/org | |
parent | 70b0e0aa5d7848b81d2d61c64af932830a8d54f6 (diff) | |
download | eclipse.platform.ua-e1e5825f8b39c2ee117c82968696431e83bcef14.tar.gz eclipse.platform.ua-e1e5825f8b39c2ee117c82968696431e83bcef14.tar.xz eclipse.platform.ua-e1e5825f8b39c2ee117c82968696431e83bcef14.zip |
Fix warnings when compiled with Java 5.0
Diffstat (limited to 'org.eclipse.ua.tests/intro/org')
-rw-r--r-- | org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/util/IntroModelSerializerTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/util/IntroModelSerializerTest.java b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/util/IntroModelSerializerTest.java index f5a9fd6cc..1aef09a72 100644 --- a/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/util/IntroModelSerializerTest.java +++ b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/util/IntroModelSerializerTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2007 IBM Corporation and others. + * Copyright (c) 2005, 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 @@ -123,7 +123,7 @@ public class IntroModelSerializerTest extends TestCase { */ public static Map getXHTMLFiles(IntroModelRoot model) { Map map = new HashMap(); - Collection pages = new ArrayList(); + Collection<AbstractIntroPage> pages = new ArrayList<AbstractIntroPage>(); IntroHomePage home = model.getRootPage(); if (home.isXHTMLPage()) { pages.add(home); @@ -134,9 +134,9 @@ public class IntroModelSerializerTest extends TestCase { pages.add(otherPages[i]); } } - Iterator iter = pages.iterator(); + Iterator<AbstractIntroPage> iter = pages.iterator(); while (iter.hasNext()) { - AbstractIntroPage page = (AbstractIntroPage)iter.next(); + AbstractIntroPage page = iter.next(); BrowserIntroPartImplementation impl = new BrowserIntroPartImplementation(); String xhtml = impl.generateXHTMLPage(page, new IIntroContentProviderSite() { public void reflow(IIntroContentProvider provider, boolean incremental) { |