Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2015-03-25 14:58:12 +0000
committerMarc Khouzam2015-03-25 15:01:46 +0000
commit37890019cbe3b6b861def0d80d0f08e91ef18865 (patch)
treef7af0f410166df8c49144dd98f0d043671837b63 /debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse
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 'debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/SetAutoSolibActionDelegate.java4
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/propertypages/OptionsPropertyPage.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/SetAutoSolibActionDelegate.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/SetAutoSolibActionDelegate.java
index 6accc0d5cad..8b82dbe6030 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/SetAutoSolibActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/SetAutoSolibActionDelegate.java
@@ -252,7 +252,7 @@ public class SetAutoSolibActionDelegate implements IViewActionDelegate, ISelecti
private SharedLibraryManager getSharedLibraryManager( IAdaptable element ) {
if ( element != null ) {
- ICDISession session = (ICDISession)element.getAdapter( ICDISession.class );
+ ICDISession session = element.getAdapter( ICDISession.class );
if ( session instanceof Session )
return ((Session)session).getSharedLibraryManager();
}
@@ -261,7 +261,7 @@ public class SetAutoSolibActionDelegate implements IViewActionDelegate, ISelecti
private Target getTarget( IAdaptable element ) {
if (element != null) {
- ICDITarget target = (ICDITarget)element.getAdapter( ICDITarget.class );
+ ICDITarget target = element.getAdapter( ICDITarget.class );
if (target instanceof Target) {
return (Target)target;
}
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/propertypages/OptionsPropertyPage.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/propertypages/OptionsPropertyPage.java
index aa036425068..0acdee5782b 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/propertypages/OptionsPropertyPage.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/propertypages/OptionsPropertyPage.java
@@ -59,7 +59,7 @@ public class OptionsPropertyPage extends PropertyPage {
private void initialize() {
boolean solibUpdate = true;
- ICDISession session = (ICDISession)getElement().getAdapter( ICDISession.class );
+ ICDISession session = getElement().getAdapter( ICDISession.class );
if ( session instanceof Session ) {
solibUpdate = ((Session)session).getSharedLibraryManager().isAutoUpdate();
}
@@ -80,8 +80,8 @@ public class OptionsPropertyPage extends PropertyPage {
}
private void storeValues() {
- ICDISession session = (ICDISession)getElement().getAdapter( ICDISession.class );
- final ICDITarget target = (ICDITarget)getElement().getAdapter( ICDITarget.class );
+ ICDISession session = getElement().getAdapter( ICDISession.class );
+ final ICDITarget target = getElement().getAdapter( ICDITarget.class );
if ( session instanceof Session ) {
final boolean solibUpdate = fRefreshSolibsButton.getSelection();
final Session miSession = ((Session)session);

Back to the top