commit | 4890aabdea8f36d586ad0532de39b21ee63842db | [log] [tgz] |
---|---|---|
author | Andrey Loskutov <loskutov@gmx.de> | Thu Jul 14 09:52:19 2016 +0200 |
committer | Andrey Loskutov <loskutov@gmx.de> | Fri Jul 15 03:55:27 2016 -0400 |
tree | 30446479beb836e0ac883eba7d5dd840240bf956 | |
parent | 9e7852750bc6df77475d08fee2335a384c53523e [diff] |
Bug 495567 - fixed "Unnecessary @SuppressWarnings("hiding")" in tests Change-Id: I42dc0662d8544285abe3e6f55b5c0dbfb630cd84 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
diff --git a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/propertysheet/AdaptingSaveableView.java b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/propertysheet/AdaptingSaveableView.java index 52ac97f..193c131 100644 --- a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/propertysheet/AdaptingSaveableView.java +++ b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/propertysheet/AdaptingSaveableView.java
@@ -26,8 +26,7 @@ */ public class AdaptingSaveableView extends MockViewPart implements ISaveablePart { - @SuppressWarnings("hiding") - public static final String ID = AdaptingSaveableView.class.getName(); + public static final String ID_ADAPTING_SAVEABLE = AdaptingSaveableView.class.getName(); private Map<Object, Object> adaptersMap;
diff --git a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/propertysheet/DirtyStatePropertySheetTest.java b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/propertysheet/DirtyStatePropertySheetTest.java index 608aab3..b309482 100644 --- a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/propertysheet/DirtyStatePropertySheetTest.java +++ b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/propertysheet/DirtyStatePropertySheetTest.java
@@ -76,7 +76,7 @@ }; adapterFactory = new MockAdapterFactory(); propertySheet = (PropertySheet) activePage.showView(IPageLayout.ID_PROP_SHEET); - saveableView = (AdaptingSaveableView) activePage.showView(AdaptingSaveableView.ID); + saveableView = (AdaptingSaveableView) activePage.showView(AdaptingSaveableView.ID_ADAPTING_SAVEABLE); // some basic checks assertEquals(activePage.getActivePart(), saveableView);