diff options
author | Lars Vogel | 2017-09-08 14:15:39 +0000 |
---|---|---|
committer | Lars Vogel | 2017-09-08 14:18:07 +0000 |
commit | 9ac2bb6a6e06deb4c19f0eae5947a8ab3629e6b7 (patch) | |
tree | 8009b62780744fa6bcf045a259cdc8c6d2d8fa3d /org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java | |
parent | 991aae18477c3d006719edbccb574932090d9ac6 (diff) | |
download | eclipse.platform.debug-9ac2bb6a6e06deb4c19f0eae5947a8ab3629e6b7.tar.gz eclipse.platform.debug-9ac2bb6a6e06deb4c19f0eae5947a8ab3629e6b7.tar.xz eclipse.platform.debug-9ac2bb6a6e06deb4c19f0eae5947a8ab3629e6b7.zip |
Bug 522059 - Remove redundant specification of type arguments fromI20170911-0405I20170910-2000I20170910-1055I20170910-0800I20170909-1500I20170909-0920I20170909-0800I20170909-0510I20170908-2345I20170908-2000
org.eclipse.debug.ui
Change-Id: Iaa1506dffb86445b0bec008c1a595f90b8a02148
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java index 69baf7b80..ab4e529aa 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java @@ -82,7 +82,7 @@ public abstract class ContextualLaunchAction implements IObjectActionDelegate, I public ContextualLaunchAction(String mode) { fMode = mode; ILaunchGroup[] groups = DebugUITools.getLaunchGroups(); - fGroupsByCategory = new HashMap<String, ILaunchGroup>(3); + fGroupsByCategory = new HashMap<>(3); for (int i = 0; i < groups.length; i++) { ILaunchGroup group = groups[i]; if (group.getMode().equals(mode)) { @@ -210,7 +210,7 @@ public abstract class ContextualLaunchAction implements IObjectActionDelegate, I context.setAllowPluginActivation(true); context.addVariable("selection", selection); //$NON-NLS-1$ List<LaunchShortcutExtension> allShortCuts = getLaunchConfigurationManager().getLaunchShortcuts(); - List<LaunchShortcutExtension> filteredShortCuts = new ArrayList<LaunchShortcutExtension>(); + List<LaunchShortcutExtension> filteredShortCuts = new ArrayList<>(); Iterator<LaunchShortcutExtension> iter = allShortCuts.iterator(); while (iter.hasNext()) { LaunchShortcutExtension ext = iter.next(); @@ -230,7 +230,7 @@ public abstract class ContextualLaunchAction implements IObjectActionDelegate, I if(menu.getItemCount() > 0 && filteredShortCuts.size() > 0) { new MenuItem(menu, SWT.SEPARATOR); } - List<String> categories = new ArrayList<String>(); + List<String> categories = new ArrayList<>(); for(LaunchShortcutExtension ext : filteredShortCuts) { for(String mode : ext.getModes()) { if (mode.equals(fMode)) { |