From 4c61e269c537cec92f62271e4a2de92435e2a9d7 Mon Sep 17 00:00:00 2001 From: Sarika Sinha Date: Mon, 5 Dec 2016 10:43:24 +0530 Subject: Bug 508647 - Compile Warnings in I20161202-2000 Change-Id: I34b04328260f1f47505fa080cc2a31048eddb422 --- .../debug/internal/ui/groups/CommonTabLite.java | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui') diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/groups/CommonTabLite.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/groups/CommonTabLite.java index 4261844f4..0c8f2cc88 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/groups/CommonTabLite.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/groups/CommonTabLite.java @@ -317,7 +317,7 @@ class CommonTabLite extends AbstractLaunchConfigurationTab { fFavoritesTable.setInput(config); fFavoritesTable.setCheckedElements(new Object[]{}); try { - List groups = config.getAttribute(IDebugUIConstants.ATTR_FAVORITE_GROUPS, new ArrayList()); + List groups = config.getAttribute(IDebugUIConstants.ATTR_FAVORITE_GROUPS, new ArrayList()); if (groups.isEmpty()) { // check old attributes for backwards compatible if (config.getAttribute(IDebugUIConstants.ATTR_DEBUG_FAVORITE, false)) { @@ -328,10 +328,10 @@ class CommonTabLite extends AbstractLaunchConfigurationTab { } } if (!groups.isEmpty()) { - List list = new ArrayList(); - Iterator iterator = groups.iterator(); + List list = new ArrayList(); + Iterator iterator = groups.iterator(); while (iterator.hasNext()) { - String id = (String)iterator.next(); + String id = iterator.next(); LaunchGroupExtension extension = getLaunchConfigurationManager().getLaunchGroup(id); if (extension != null) { list.add(extension); @@ -385,7 +385,7 @@ class CommonTabLite extends AbstractLaunchConfigurationTab { boolean run = config.getAttribute(IDebugUIConstants.ATTR_RUN_FAVORITE, false); if (debug || run) { // old attributes - List groups = new ArrayList(); + List groups = new ArrayList(); int num = 0; if (debug) { groups.add(getLaunchConfigurationManager().getLaunchGroup(IDebugUIConstants.ID_DEBUG_LAUNCH_GROUP)); @@ -411,11 +411,11 @@ class CommonTabLite extends AbstractLaunchConfigurationTab { } config.setAttribute(IDebugUIConstants.ATTR_DEBUG_FAVORITE, (String)null); config.setAttribute(IDebugUIConstants.ATTR_RUN_FAVORITE, (String)null); - List groups = null; + List groups = null; for (int i = 0; i < checked.length; i++) { LaunchGroupExtension group = (LaunchGroupExtension)checked[i]; if (groups == null) { - groups = new ArrayList(); + groups = new ArrayList(); } groups.add(group.getIdentifier()); } @@ -534,7 +534,7 @@ class CommonTabLite extends AbstractLaunchConfigurationTab { @Override public Object[] getElements(Object inputElement) { ILaunchGroup[] groups = DebugUITools.getLaunchGroups(); - List possibleGroups = new ArrayList(); + List possibleGroups = new ArrayList(); ILaunchConfiguration configuration = (ILaunchConfiguration)inputElement; for (int i = 0; i < groups.length; i++) { ILaunchGroup extension = groups[i]; @@ -560,11 +560,11 @@ class CommonTabLite extends AbstractLaunchConfigurationTab { */ class FavoritesLabelProvider implements ITableLabelProvider { - private Map fImages = new HashMap(); + private Map fImages = new HashMap(); @Override public Image getColumnImage(Object element, int columnIndex) { - Image image = (Image)fImages.get(element); + Image image = fImages.get(element); if (image == null) { ImageDescriptor descriptor = ((LaunchGroupExtension)element).getImageDescriptor(); if (descriptor != null) { @@ -586,9 +586,9 @@ class CommonTabLite extends AbstractLaunchConfigurationTab { @Override public void dispose() { - Iterator images = fImages.values().iterator(); + Iterator images = fImages.values().iterator(); while (images.hasNext()) { - Image image = (Image)images.next(); + Image image = images.next(); image.dispose(); } } -- cgit v1.2.3