Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/lm/LaunchConfigHelper.java')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/lm/LaunchConfigHelper.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/lm/LaunchConfigHelper.java b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/lm/LaunchConfigHelper.java
index 20eeabd3f..245676960 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/lm/LaunchConfigHelper.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/lm/LaunchConfigHelper.java
@@ -38,18 +38,19 @@ public class LaunchConfigHelper {
return DebugPlugin.getDefault().getLaunchManager().generateLaunchConfigurationName(name);
}
- public static void addLaunchConfigAttribute(ILaunchConfigurationWorkingCopy wc, String key, Object value) {
+ @SuppressWarnings("unchecked")
+ public static void addLaunchConfigAttribute(ILaunchConfigurationWorkingCopy wc, String key, Object value) {
if (value instanceof String) {
DefaultPersistenceDelegate.setAttribute(wc, key, (String)value);
}
else if (value instanceof List) {
- DefaultPersistenceDelegate.setAttribute(wc, key, (List<?>)value);
+ DefaultPersistenceDelegate.setAttribute(wc, key, (List<String>)value);
}
else if (value instanceof Map) {
- DefaultPersistenceDelegate.setAttribute(wc, key, (Map<?,?>)value);
+ DefaultPersistenceDelegate.setAttribute(wc, key, (Map<String, String>)value);
}
else if (value instanceof Set) {
- DefaultPersistenceDelegate.setAttribute(wc, key, (Set<?>)value);
+ DefaultPersistenceDelegate.setAttribute(wc, key, (Set<String>)value);
}
else if (value instanceof Boolean) {
DefaultPersistenceDelegate.setAttribute(wc, key, ((Boolean)value).booleanValue());

Back to the top