Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/telnet/TelnetCommand.java')
-rwxr-xr-xbundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/telnet/TelnetCommand.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/telnet/TelnetCommand.java b/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/telnet/TelnetCommand.java
index 7fcec398b..8829242f5 100755
--- a/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/telnet/TelnetCommand.java
+++ b/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/telnet/TelnetCommand.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010, 2012 SAP AG
+ * Copyright (c) 2010, 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
@@ -214,12 +214,12 @@ public class TelnetCommand {
}
class TelnetConfigurator implements ManagedService {
- @SuppressWarnings("rawtypes")
- private Dictionary properties;
- @SuppressWarnings({ "rawtypes", "unchecked" })
- public synchronized void updated(Dictionary props) throws ConfigurationException {
+ private Dictionary<String, Object> properties;
+ 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, TELNET_PID);
} else {
return;

Back to the top