Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2010-07-14 10:02:35 -0400
committerAndrew Gvozdev2010-07-14 10:02:35 -0400
commit73ea2efa7dcce93602da202b40e111f4c3b52821 (patch)
tree972b4041619028165af6b85aeb6e8443d36420e5 /debug/org.eclipse.cdt.debug.ui
parentdbe5a12393fe97df53023a9093787a8037e2289b (diff)
downloadorg.eclipse.cdt-73ea2efa7dcce93602da202b40e111f4c3b52821.tar.gz
org.eclipse.cdt-73ea2efa7dcce93602da202b40e111f4c3b52821.tar.xz
org.eclipse.cdt-73ea2efa7dcce93602da202b40e111f4c3b52821.zip
bug 319769: Unnecessary type casts
patch from Petri Tuononen
Diffstat (limited to 'debug/org.eclipse.cdt.debug.ui')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementProxyFactory.java2
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementProxyFactory.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementProxyFactory.java
index 58f33a69fe..fbfeea4a07 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementProxyFactory.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/elements/adapters/CDebugElementProxyFactory.java
@@ -47,7 +47,7 @@ public class CDebugElementProxyFactory extends DefaultModelProxyFactory {
}
else if ( ICDebugUIConstants.ID_DEFAULT_DISASSEMBLY_EDITOR.equals( context.getId() ) ) {
if ( element instanceof DisassemblyRetrieval ) {
- return new DisassemblyElementProxy( (DisassemblyRetrieval)element );
+ return new DisassemblyElementProxy( element );
}
}
return super.createModelProxy( element, context );
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java
index 0604189202..8f5a8aaef2 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java
@@ -527,7 +527,7 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
IStructuredSelection structuredSelection = (IStructuredSelection) selection;
for (Iterator<?> iter = structuredSelection.iterator(); iter.hasNext();) {
- Object element = (Object) iter.next();
+ Object element = iter.next();
if (element != null) {
if (element instanceof ICProject) {

Back to the top