aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Mailänder2014-02-26 09:57:20 (EST)
committerLars Vogel2014-03-07 13:04:05 (EST)
commitad46fa216dc1dd2cd910f85b78ecc12bd190be07 (patch)
tree0e61d98bda1cefcaf771c5285d3fa9ecb01073f1
parent228e3f47a6b0c9dc587ca10cf29b1999ae1d1f87 (diff)
downloadeclipse.platform.ui-ad46fa216dc1dd2cd910f85b78ecc12bd190be07.zip
eclipse.platform.ui-ad46fa216dc1dd2cd910f85b78ecc12bd190be07.tar.gz
eclipse.platform.ui-ad46fa216dc1dd2cd910f85b78ecc12bd190be07.tar.bz2
Bug 428355 - [New Contributors] Fix warnings in platform projectsrefs/changes/71/22571/3
Resolved all warnings in AboutBundleData. Change-Id: I7f3ca9789d12ab0b0bfd18ca81903e21e1aafa92 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/AboutBundleData.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutBundleData.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutBundleData.java
index d64880f..d6bf883 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutBundleData.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/about/AboutBundleData.java
@@ -52,9 +52,9 @@ public class AboutBundleData extends AboutData {
}
/**
- * Return a string representation of the arugment state. Does not return
- * null.
- */
+ * @return a string representation of the argument state.
+ * Does not return null.
+ */
public String getStateName() {
switch (getState()) {
case Bundle.INSTALLED:
@@ -83,14 +83,14 @@ public class AboutBundleData extends AboutData {
* @return the string or null if the string cannot be found
*/
private static String getResourceString(Bundle bundle, String headerName) {
- String value = (String) bundle.getHeaders().get(headerName);
+ String value = bundle.getHeaders().get(headerName);
return value == null ? null : Platform.getResourceString(bundle, value);
}
-
+
public boolean isSignedDetermined() {
return isSignedDetermined;
}
-
+
public boolean isSigned() throws IllegalStateException {
if (isSignedDetermined)
@@ -98,7 +98,7 @@ public class AboutBundleData extends AboutData {
BundleContext bundleContext = WorkbenchPlugin.getDefault()
.getBundleContext();
- ServiceReference factoryRef = bundleContext
+ ServiceReference<?> factoryRef = bundleContext
.getServiceReference(SignedContentFactory.class.getName());
if (factoryRef == null)
throw new IllegalStateException();
@@ -119,7 +119,7 @@ public class AboutBundleData extends AboutData {
}
/**
- * @return
+ * @return current bundle
*/
public Bundle getBundle() {
return bundle;