Skip to main content
summaryrefslogtreecommitdiffstats
path: root/cross
diff options
context:
space:
mode:
authorMarc Khouzam2015-03-25 10:58:12 -0400
committerMarc Khouzam2015-03-25 11:01:46 -0400
commit37890019cbe3b6b861def0d80d0f08e91ef18865 (patch)
treef7af0f410166df8c49144dd98f0d043671837b63 /cross
parented97b40808590029c095499811c22e123862ac9c (diff)
downloadorg.eclipse.cdt-37890019cbe3b6b861def0d80d0f08e91ef18865.tar.gz
org.eclipse.cdt-37890019cbe3b6b861def0d80d0f08e91ef18865.tar.xz
org.eclipse.cdt-37890019cbe3b6b861def0d80d0f08e91ef18865.zip
Remove warnings caused by change to getAdaptable()
getAdaptable() in 4.5 M6 has changed to use generics, making casting its result no longer necessary. Change-Id: Idd943216a925576bb72c784b2c5a2a4b8e8b00d2 Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Diffstat (limited to 'cross')
-rw-r--r--cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/RSEHelper.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/RSEHelper.java b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/RSEHelper.java
index 20198fcd04..5bc1e86749 100644
--- a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/RSEHelper.java
+++ b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/RSEHelper.java
@@ -96,7 +96,7 @@ public class RSEHelper {
if (!subsystem.isConnected())
throw new Exception(Messages.RemoteRunLaunchDelegate_5);
- return (IShellService) subsystem.getSubSystemConfiguration()
+ return subsystem.getSubSystemConfiguration()
.getService(currentConnection).getAdapter(
IShellService.class);
} else {
@@ -114,7 +114,7 @@ public class RSEHelper {
public static IShellService getShellService(IHost host) {
ISubSystem ss = getSubSystemWithShellService(host);
if (ss != null) {
- return (IShellService) ss.getSubSystemConfiguration().getService(
+ return ss.getSubSystemConfiguration().getService(
host).getAdapter(IShellService.class);
}
return null;
@@ -136,7 +136,7 @@ public class RSEHelper {
IService svc = subSystems[i].getSubSystemConfiguration()
.getService(host);
if (svc != null) {
- ssvc = (IShellService) svc.getAdapter(IShellService.class);
+ ssvc = svc.getAdapter(IShellService.class);
if (ssvc != null) {
return subSystems[i];
}

Back to the top