diff options
| author | Andrey Loskutov | 2016-08-16 19:03:23 +0000 |
|---|---|---|
| committer | Andrey Loskutov | 2016-08-16 19:03:23 +0000 |
| commit | 25a79ea97f00f8bdfcea3e5526f88b1480bc6e1f (patch) | |
| tree | 66d9c0abd88c3a01e365dcc2f42d93cd135dbd09 | |
| parent | 9105a945cb29195342d18f928268734ea3028cd6 (diff) | |
| download | eclipse.platform.ui-25a79ea97f00f8bdfcea3e5526f88b1480bc6e1f.tar.gz eclipse.platform.ui-25a79ea97f00f8bdfcea3e5526f88b1480bc6e1f.tar.xz eclipse.platform.ui-25a79ea97f00f8bdfcea3e5526f88b1480bc6e1f.zip | |
Revert "Revert "Bug 495567 - fixed "Unnecessary @SuppressWarnings("hiding")" in tests""
This reverts commit 3aedd2a119c8a4bb6eedb1802c5e371d148565fd.
2 files changed, 2 insertions, 3 deletions
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 52ac97f8c5c..193c131ccb1 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 @@ import org.eclipse.ui.tests.api.MockViewPart; */ 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 608aab331de..b30948248bf 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 @@ public class DirtyStatePropertySheetTest extends AbstractPropertySheetTest { }; 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); |
