From 12681f780730c11fbf777ad2b53158fe34d12714 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Thu, 8 Feb 2018 18:52:39 +0200 Subject: Remove unnecessary suppress warnings. Change-Id: I1c3de215d9c4f488309f53eaa4a90a32210994be Signed-off-by: Alexander Kurtakov --- .../cdt/debug/internal/ui/views/executables/ExecutablesViewer.java | 3 +-- .../internal/ui/views/executables/ExecutablesViewerComparator.java | 3 +-- .../cdt/debug/internal/ui/views/executables/SourceFilesViewer.java | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'debug/org.eclipse.cdt.debug.ui/src/org/eclipse') diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewer.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewer.java index e993acfa2c5..2e79c3c1ccd 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewer.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2012 Nokia and others. + * Copyright (c) 2008, 2018 Nokia and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -149,7 +149,6 @@ public class ExecutablesViewer extends BaseViewer { if (sortType == ExecutablesView.PROJECT) { return new ExecutablesViewerComparator(sortType, column_sort_order[ExecutablesView.PROJECT]) { @Override - @SuppressWarnings("unchecked") public int compare(Viewer viewer, Object e1, Object e2) { Executable entry1 = (Executable) e1; Executable entry2 = (Executable) e2; diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewerComparator.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewerComparator.java index 1895a802930..050291df256 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewerComparator.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewerComparator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2012 Nokia and others. + * Copyright (c) 2008, 2018 Nokia and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -38,7 +38,6 @@ class ExecutablesViewerComparator extends ViewerComparator { } @Override - @SuppressWarnings("unchecked") public int compare(Viewer viewer, Object e1, Object e2) { if (category(e1) == 1 && category(e2) == 1) { diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesViewer.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesViewer.java index cbe81b3012e..24e4b9c3829 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesViewer.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesViewer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2012 Nokia and others. + * Copyright (c) 2010, 2018 Nokia and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -197,7 +197,6 @@ public class SourceFilesViewer extends BaseViewer { return new ExecutablesViewerComparator(sortType, column_sort_order[ExecutablesView.ORG_LOCATION]) { @Override - @SuppressWarnings("unchecked") public int compare(Viewer viewer, Object e1, Object e2) { if (e1 instanceof ITranslationUnit && e2 instanceof ITranslationUnit) { ITranslationUnit entry1 = (ITranslationUnit) e1; -- cgit v1.2.3