Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ross2013-10-09 13:53:41 +0000
committerJohn Ross2013-10-21 18:43:03 +0000
commit4537a958f9fdd1800edd58241c007d4f26d23cfa (patch)
treebcc783b6568bdc410ab0048db66bc5a6702679fa /bundles/org.eclipse.equinox.console.ssh/src
parent11d46d680b19a7d928742d3230c2afe59a74c7d3 (diff)
downloadrt.equinox.bundles-4537a958f9fdd1800edd58241c007d4f26d23cfa.tar.gz
rt.equinox.bundles-4537a958f9fdd1800edd58241c007d4f26d23cfa.tar.xz
rt.equinox.bundles-4537a958f9fdd1800edd58241c007d4f26d23cfa.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. Change import package version ranges to earliest version in which generics were introduced.
Diffstat (limited to 'bundles/org.eclipse.equinox.console.ssh/src')
-rwxr-xr-xbundles/org.eclipse.equinox.console.ssh/src/org/eclipse/equinox/console/ssh/SshCommand.java13
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;

Back to the top