Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Mailänder2014-02-26 13:20:55 +0000
committerLars Vogel2014-03-10 17:05:07 +0000
commit26159c418417325015fc97d686a6fac7082c1eca (patch)
treede8c2f1d9b6b190370b6eee1023de217e0353103
parent7e3414960f71d7301d6941d9a2cb93c2340aaf4f (diff)
downloadeclipse.platform.ui-26159c418417325015fc97d686a6fac7082c1eca.tar.gz
eclipse.platform.ui-26159c418417325015fc97d686a6fac7082c1eca.tar.xz
eclipse.platform.ui-26159c418417325015fc97d686a6fac7082c1eca.zip
Bug 428355 - [New Contributors] Fix warnings in platform projects
Parameterized raw types in about plugins. Change-Id: Ice3830b3823c14d3273f0e9561fec648f7a3cf9c Signed-off-by: Matthias Mailänder <matthias.mailaender@vogella.com>
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutPluginsPage.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutPluginsPage.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutPluginsPage.java
index d93b9982f1a..8481fb34276 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutPluginsPage.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutPluginsPage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 2014 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
@@ -75,7 +75,7 @@ import org.osgi.framework.Bundle;
/**
* Displays information about the product plugins.
*
- * PRIVATE this class is internal to the ide
+ * PRIVATE this class is internal to the IDE
*/
public class AboutPluginsPage extends ProductInfoPage {
@@ -85,12 +85,12 @@ public class AboutPluginsPage extends ProductInfoPage {
/**
* Queue containing bundle signing info to be resolved.
*/
- private LinkedList resolveQueue = new LinkedList();
+ private LinkedList<AboutBundleData> resolveQueue = new LinkedList<AboutBundleData>();
/**
* Queue containing bundle data that's been resolve and needs updating.
*/
- private List updateQueue = new ArrayList();
+ private List<AboutBundleData> updateQueue = new ArrayList<AboutBundleData>();
/*
* this job will attempt to discover the signing state of a given bundle
@@ -117,7 +117,7 @@ public class AboutPluginsPage extends ProductInfoPage {
synchronized (resolveQueue) {
if (resolveQueue.isEmpty())
return Status.OK_STATUS;
- data = (AboutBundleData) resolveQueue.removeFirst();
+ data = resolveQueue.removeFirst();
}
try {
// following is an expensive call
@@ -165,7 +165,7 @@ public class AboutPluginsPage extends ProductInfoPage {
if (updateQueue.isEmpty())
return Status.OK_STATUS;
- data = (AboutBundleData[]) updateQueue
+ data = updateQueue
.toArray(new AboutBundleData[updateQueue.size()]);
updateQueue.clear();
@@ -327,7 +327,7 @@ public class AboutPluginsPage extends ProductInfoPage {
// create a data object for each bundle, remove duplicates, and include
// only resolved bundles (bug 65548)
- Map map = new HashMap();
+ Map<String, AboutBundleData> map = new HashMap<String, AboutBundleData>();
for (int i = 0; i < bundles.length; ++i) {
AboutBundleData data = new AboutBundleData(bundles[i]);
if (BundleUtility.isReady(data.getState())
@@ -335,7 +335,7 @@ public class AboutPluginsPage extends ProductInfoPage {
map.put(data.getVersionedId(), data);
}
}
- bundleInfos = (AboutBundleData[]) map.values().toArray(
+ bundleInfos = map.values().toArray(
new AboutBundleData[0]);
WorkbenchPlugin.class.getSigners();
@@ -455,7 +455,7 @@ public class AboutPluginsPage extends ProductInfoPage {
}
/**
- * Return an url to the plugin's about.html file (what is shown when
+ * Return an URL to the plugin's about.html file (what is shown when
* "More info" is pressed) or null if no such file exists. The method does
* nl lookup to allow for i18n.
*
@@ -463,7 +463,7 @@ public class AboutPluginsPage extends ProductInfoPage {
* the bundle info
* @param makeLocal
* whether to make the about content local
- * @return the url or <code>null</code>
+ * @return the URL or <code>null</code>
*/
private URL getMoreInfoURL(AboutBundleData bundleInfo, boolean makeLocal) {
Bundle bundle = Platform.getBundle(bundleInfo.getId());

Back to the top