Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian de Alwis2016-04-07 16:20:29 +0000
committerBrian de Alwis2016-04-08 14:37:13 +0000
commit87502bc98ec1c89e8adba4df7aa86d3e12dd4a06 (patch)
tree9885c30210bdb6aaede8ed576bf769d97681fea8 /org.eclipse.ua.tests/intro/org/eclipse/ua
parent3690d52e9e3c1f9452c3061a4e3fe91f006395d6 (diff)
downloadeclipse.platform.ua-87502bc98ec1c89e8adba4df7aa86d3e12dd4a06.tar.gz
eclipse.platform.ua-87502bc98ec1c89e8adba4df7aa86d3e12dd4a06.tar.xz
eclipse.platform.ua-87502bc98ec1c89e8adba4df7aa86d3e12dd4a06.zip
Bug 491265 - Generify org.eclipse.ui.intro*
Move org.eclipse.ui.intro.universal to JavaSE-1.8 Fix leaked resources Change-Id: I831a65808709853459129c20244c42a84dd6bf02
Diffstat (limited to 'org.eclipse.ua.tests/intro/org/eclipse/ua')
-rw-r--r--org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/contentdetect/ContentDetectorTest.java2
-rw-r--r--org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/util/IntroModelSerializer.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/contentdetect/ContentDetectorTest.java b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/contentdetect/ContentDetectorTest.java
index cd00f2667..a558fff4c 100644
--- a/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/contentdetect/ContentDetectorTest.java
+++ b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/contentdetect/ContentDetectorTest.java
@@ -90,7 +90,7 @@ public class ContentDetectorTest {
assertFalse(detector.isNewContentAvailable());
Set<?> newContent = ContentDetector.getNewContributors();
assertTrue(newContent == null || newContent.size() == 0);
- String firstContribution = (String) helper.getContributors().iterator().next();
+ String firstContribution = helper.getContributors().iterator().next();
assertFalse(ContentDetector.isNew(firstContribution));
}
diff --git a/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/util/IntroModelSerializer.java b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/util/IntroModelSerializer.java
index d8361e353..fae8301ad 100644
--- a/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/util/IntroModelSerializer.java
+++ b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/util/IntroModelSerializer.java
@@ -11,7 +11,7 @@
package org.eclipse.ua.tests.intro.util;
import java.util.Arrays;
-import java.util.Hashtable;
+import java.util.Map;
import java.util.Set;
import org.eclipse.ui.internal.intro.impl.model.AbstractIntroContainer;
@@ -111,7 +111,7 @@ public class IntroModelSerializer {
text.append(filterURL(style + "\n\t\t\t")); //$NON-NLS-1$
text.append("\n\tpage alt-styles are = "); //$NON-NLS-1$
- final Hashtable<String, Bundle> altStylesHashtable = page.getAltStyles();
+ final Map<String, Bundle> altStylesHashtable = page.getAltStyles();
if (altStylesHashtable == null)
return;

Back to the top