Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2014-08-12 08:55:43 -0400
committerMarkus Keller2014-08-12 08:55:43 -0400
commit5d4ea367b42aa3d2a875fcc86f4ccf6ef74a62fe (patch)
treebed2fa96baa6ebd7adb3902b9095aefd38b6e583 /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parentc37aa73ffdd7a1497c2d8729ffb08e5cd35b1cc1 (diff)
downloadeclipse.platform.debug-5d4ea367b42aa3d2a875fcc86f4ccf6ef74a62fe.tar.gz
eclipse.platform.debug-5d4ea367b42aa3d2a875fcc86f4ccf6ef74a62fe.tar.xz
eclipse.platform.debug-5d4ea367b42aa3d2a875fcc86f4ccf6ef74a62fe.zip
Removed unnecessary casts from Bug 430981: Add type information to IServiceLocator.getService
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/BreakpointTypesContribution.java4
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/RelaunchLastAction.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/BreakpointTypesContribution.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/BreakpointTypesContribution.java
index b11185ad2..aff60b58d 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/BreakpointTypesContribution.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/BreakpointTypesContribution.java
@@ -114,11 +114,11 @@ public class BreakpointTypesContribution extends CompoundContributionItem implem
ISelection selection = null;
ISelectionService selectionService =
- (ISelectionService)fServiceLocator.getService(ISelectionService.class);
+ fServiceLocator.getService(ISelectionService.class);
if (selectionService != null) {
selection = selectionService.getSelection();
}
- IPartService partService = (IPartService)fServiceLocator.getService(IPartService.class);
+ IPartService partService = fServiceLocator.getService(IPartService.class);
if (partService != null) {
part = partService.getActivePart();
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/RelaunchLastAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/RelaunchLastAction.java
index b58ccae6f..26fe9893e 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/RelaunchLastAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/RelaunchLastAction.java
@@ -161,7 +161,7 @@ public abstract class RelaunchLastAction implements IWorkbenchWindowActionDelega
fAction.setText(getText());
fAction.setToolTipText(getTooltipText());
String commandId = getCommandId();
- ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class);
+ ICommandService service = PlatformUI.getWorkbench().getService(ICommandService.class);
if (service != null) {
Command command = service.getCommand(commandId);
command.undefine();

Back to the top