Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.help.base/src/org/eclipse/help/internal/search/PluginVersionInfo.java')
-rw-r--r--org.eclipse.help.base/src/org/eclipse/help/internal/search/PluginVersionInfo.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/search/PluginVersionInfo.java b/org.eclipse.help.base/src/org/eclipse/help/internal/search/PluginVersionInfo.java
index 25890a225..cc059dd99 100644
--- a/org.eclipse.help.base/src/org/eclipse/help/internal/search/PluginVersionInfo.java
+++ b/org.eclipse.help.base/src/org/eclipse/help/internal/search/PluginVersionInfo.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2008 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
@@ -42,9 +42,9 @@ public class PluginVersionInfo extends HelpProperties {
boolean ignoreSavedVersions;
- Collection<String> added = new ArrayList<String>();
+ Collection added = new ArrayList();
- Collection<String> removed = new ArrayList<String>();
+ Collection removed = new ArrayList();
/**
* Creates table of current contributing plugins and their fragments with
@@ -121,7 +121,7 @@ public class PluginVersionInfo extends HelpProperties {
}
// check if contributions changed
hasChanged = false;
- for (Enumeration<Object> keysEnum = this.keys(); keysEnum.hasMoreElements();) {
+ for (Enumeration keysEnum = this.keys(); keysEnum.hasMoreElements();) {
String oneContr = (String) keysEnum.nextElement();
if (!oldContrs.containsKey(oneContr)) {
// plugin has been added
@@ -153,7 +153,7 @@ public class PluginVersionInfo extends HelpProperties {
* @return String - Collection of IDs of contributions that were added or
* upgraded
*/
- public Collection<String> getAdded() {
+ public Collection getAdded() {
if (doComparison)
detectChange();
return added;
@@ -163,7 +163,7 @@ public class PluginVersionInfo extends HelpProperties {
* @return String - Collection of IDs of contributions that were removed or
* upgraded
*/
- public Collection<String> getRemoved() {
+ public Collection getRemoved() {
if (doComparison)
detectChange();
return removed;
@@ -180,8 +180,8 @@ public class PluginVersionInfo extends HelpProperties {
doComparison = false;
hasChanged = false;
ignoreSavedVersions = false;
- added = new ArrayList<String>();
- removed = new ArrayList<String>();
+ added = new ArrayList();
+ removed = new ArrayList();
return true;
}
return false;
@@ -195,7 +195,7 @@ public class PluginVersionInfo extends HelpProperties {
* @return true if plugins and versions match
*/
private boolean compare(String versions, String oldVersions) {
- Map<String, String> versionMap = new HashMap<String, String>();
+ Map versionMap = new HashMap();
for (StringTokenizer t = new StringTokenizer(versions, SEPARATOR, false); t
.hasMoreTokens();) {
String pluginOrFragment = t.nextToken();
@@ -203,7 +203,7 @@ public class PluginVersionInfo extends HelpProperties {
versionMap.put(pluginOrFragment, t.nextToken());
}
}
- Map<String, String> oldVersionMap = new HashMap<String, String>();
+ Map oldVersionMap = new HashMap();
for (StringTokenizer t = new StringTokenizer(oldVersions, SEPARATOR,
false); t.hasMoreTokens();) {
String pluginOrFragment = t.nextToken();

Back to the top