From ad46fa216dc1dd2cd910f85b78ecc12bd190be07 Mon Sep 17 00:00:00 2001 From: Matthias Mailänder Date: Wed, 26 Feb 2014 15:57:20 +0100 Subject: Bug 428355 - [New Contributors] Fix warnings in platform projects Resolved all warnings in AboutBundleData. Change-Id: I7f3ca9789d12ab0b0bfd18ca81903e21e1aafa92 Signed-off-by: Matthias Mailänder --- .../org/eclipse/ui/internal/about/AboutBundleData.java | 16 ++++++++-------- 1 file 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 d64880fefdd..d6bf8839cc3 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; -- cgit v1.2.3