Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2008-11-13 14:55:35 +0000
committerThomas Watson2008-11-13 14:55:35 +0000
commitfaa4489374631f64a5fc38d549d1970c7866951f (patch)
tree82f8214b188bb48dea41090701cb92c9a915afd9 /bundles/org.eclipse.osgi.tests/bundles_src
parent3ed8028191baa3054b5c4375e914473812511714 (diff)
downloadrt.equinox.framework-faa4489374631f64a5fc38d549d1970c7866951f.tar.gz
rt.equinox.framework-faa4489374631f64a5fc38d549d1970c7866951f.tar.xz
rt.equinox.framework-faa4489374631f64a5fc38d549d1970c7866951f.zip
Bug 255022 Compiler warnings in N20081111-2000
Diffstat (limited to 'bundles/org.eclipse.osgi.tests/bundles_src')
-rw-r--r--bundles/org.eclipse.osgi.tests/bundles_src/security.b/security/b/Activator.java39
1 files changed, 17 insertions, 22 deletions
diff --git a/bundles/org.eclipse.osgi.tests/bundles_src/security.b/security/b/Activator.java b/bundles/org.eclipse.osgi.tests/bundles_src/security.b/security/b/Activator.java
index d2b6b2d51..2288b75b4 100644
--- a/bundles/org.eclipse.osgi.tests/bundles_src/security.b/security/b/Activator.java
+++ b/bundles/org.eclipse.osgi.tests/bundles_src/security.b/security/b/Activator.java
@@ -11,47 +11,42 @@
package security.b;
-import java.util.Dictionary;
-
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
+import org.osgi.framework.*;
public class Activator implements BundleActivator {
- private BundleContext bc;
-
+ private BundleContext bc;
+
/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
- System.out.println("Starting bundle Test2!!");
- System.out.println("Security manager: "+System.getSecurityManager());
+ System.out.println("Starting bundle Test2!!"); //$NON-NLS-1$
+ System.out.println("Security manager: " + System.getSecurityManager()); //$NON-NLS-1$
this.bc = context;
doTestAction();
}
-
+
/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
- System.out.println("Stopping bundle Test2!!");
+ System.out.println("Stopping bundle Test2!!"); //$NON-NLS-1$
}
- private void doTestAction() {
- Bundle[] bundles = bc.getBundles();
- Bundle thisBundle = bc.getBundle();
- for (int i = 0; i < bundles.length; i++) {
- if (thisBundle.getBundleId() != bundles[i].getBundleId()) {
- checkBundle(bundles[i]);
- }
- }
+ private void doTestAction() {
+ Bundle[] bundles = bc.getBundles();
+ Bundle thisBundle = bc.getBundle();
+ for (int i = 0; i < bundles.length; i++) {
+ if (thisBundle.getBundleId() != bundles[i].getBundleId()) {
+ checkBundle(bundles[i]);
+ }
+ }
}
-
- private void checkBundle(Bundle bundle) {
- Dictionary headers = bundle.getHeaders();
+ private void checkBundle(Bundle bundle) {
+ bundle.getHeaders();
}
}

Back to the top