diff options
author | John Ross | 2013-10-09 13:53:41 +0000 |
---|---|---|
committer | John Ross | 2013-10-11 13:15:25 +0000 |
commit | 4f29606716cc4aeeb2677b19414a82bd1cecace9 (patch) | |
tree | 40c705da91cd42c0f88a6b220a4c8687d83a8e85 /bundles/org.eclipse.equinox.console.ssh/src/org/eclipse/equinox/console | |
parent | 41ec885b292d8bda6ad07c5827a039a7cde30404 (diff) | |
download | rt.equinox.bundles-4f29606716cc4aeeb2677b19414a82bd1cecace9.tar.gz rt.equinox.bundles-4f29606716cc4aeeb2677b19414a82bd1cecace9.tar.xz rt.equinox.bundles-4f29606716cc4aeeb2677b19414a82bd1cecace9.zip |
Bug 418663 - [console.ssh] Get rid of compile warnings in official build
Update jdt core prefs to org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=disabled.
Remove @SuppressWarnings annotations.
Genericize the code.
Update copyrights.
Update bundle version.
Diffstat (limited to 'bundles/org.eclipse.equinox.console.ssh/src/org/eclipse/equinox/console')
-rwxr-xr-x | bundles/org.eclipse.equinox.console.ssh/src/org/eclipse/equinox/console/ssh/SshCommand.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.console.ssh/src/org/eclipse/equinox/console/ssh/SshCommand.java b/bundles/org.eclipse.equinox.console.ssh/src/org/eclipse/equinox/console/ssh/SshCommand.java index 8ca7573d0..80e3c7f2d 100755 --- a/bundles/org.eclipse.equinox.console.ssh/src/org/eclipse/equinox/console/ssh/SshCommand.java +++ b/bundles/org.eclipse.equinox.console.ssh/src/org/eclipse/equinox/console/ssh/SshCommand.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 SAP AG + * Copyright (c) 2011, 2013 SAP AG 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 @@ -269,12 +269,13 @@ public class SshCommand { } class SshConfigurator implements ManagedService { - @SuppressWarnings("rawtypes") - private Dictionary properties; - @SuppressWarnings({ "rawtypes", "unchecked" }) - public synchronized void updated(Dictionary props) throws ConfigurationException { + private Dictionary<String, Object> properties; + @Override + public synchronized void updated(Dictionary<String, ?> props) throws ConfigurationException { if (props != null) { - this.properties = props; + @SuppressWarnings("unchecked") + Dictionary<String, Object> unchecked = (Dictionary<String, Object>) props; + properties = unchecked; properties.put(Constants.SERVICE_PID, SSH_PID); } else { return; |