diff options
author | Thomas Watson | 2010-07-16 20:18:12 +0000 |
---|---|---|
committer | Thomas Watson | 2010-07-16 20:18:12 +0000 |
commit | 4221de6fdf63fb9e21744396d699d51d88a8fa85 (patch) | |
tree | 921ab4704e60eb64e09092f12b3c8eb06f9f4be7 /bundles/org.eclipse.osgi/console | |
parent | c1ebc886a406cd2396676f481e5d9347b84beafe (diff) | |
download | rt.equinox.framework-4221de6fdf63fb9e21744396d699d51d88a8fa85.tar.gz rt.equinox.framework-4221de6fdf63fb9e21744396d699d51d88a8fa85.tar.xz rt.equinox.framework-4221de6fdf63fb9e21744396d699d51d88a8fa85.zip |
Fix warnings.v20100716
Diffstat (limited to 'bundles/org.eclipse.osgi/console')
2 files changed, 12 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/ConsoleManager.java b/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/ConsoleManager.java index c4875099c..a40f24e56 100644 --- a/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/ConsoleManager.java +++ b/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/ConsoleManager.java @@ -86,7 +86,7 @@ public class ConsoleManager implements ServiceTrackerCustomizer { public static final String PROP_CONSOLE = "osgi.console"; //$NON-NLS-1$ private static final String PROP_SYSTEM_IN_OUT = "console.systemInOut"; //$NON-NLS-1$ private static final String CONSOLE_NAME = "OSGi Console"; //$NON-NLS-1$ - private final Framework framework; + final Framework framework; private final ServiceTracker cpTracker; private final ServiceTracker sessions; private final String consolePort; @@ -125,11 +125,17 @@ public class ConsoleManager implements ServiceTrackerCustomizer { } if (port < 0) { InputStream in = new FilterInputStream(System.in) { + /** + * @throws IOException + */ public void close() throws IOException { // We don't want to close System.in } }; OutputStream out = new FilterOutputStream(System.out) { + /** + * @throws IOException + */ public void close() throws IOException { // We don't want to close System.out } diff --git a/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkCommandInterpreter.java b/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkCommandInterpreter.java index a54f2d813..26d1737c7 100644 --- a/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkCommandInterpreter.java +++ b/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkCommandInterpreter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2003, 2009 IBM Corporation and others. + * Copyright (c) 2003, 2010 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 @@ -284,7 +284,9 @@ public class FrameworkCommandInterpreter implements CommandInterpreter { printStackTrace(nested); } } catch (IllegalAccessException e) { + // nothing } catch (InvocationTargetException e) { + // nothing } } } @@ -364,6 +366,7 @@ public class FrameworkCommandInterpreter implements CommandInterpreter { try { in.close(); } catch (IOException e) { + // nothing } } } @@ -512,6 +515,7 @@ public class FrameworkCommandInterpreter implements CommandInterpreter { return answer; } } catch (NumberFormatException e) { + // nothing } println(ConsoleMsg.CONSOLE_INVALID_INPUT); } |