diff options
Diffstat (limited to 'bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutPluginsPage.java')
-rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutPluginsPage.java | 20 |
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()); |