aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeanderson Candido2014-04-28 14:04:44 (EDT)
committerLars Vogel2014-05-06 00:59:22 (EDT)
commit4af2f3c889e909d8c044186565992e6b87b5aaa9 (patch)
tree7584e9322fb4544c09119509a08b48c93bf90820
parentff0c4061d5e4ca4cf9a0cd02f8beb55c25060f67 (diff)
downloadeclipse.platform.ui-4af2f3c889e909d8c044186565992e6b87b5aaa9.zip
eclipse.platform.ui-4af2f3c889e909d8c044186565992e6b87b5aaa9.tar.gz
eclipse.platform.ui-4af2f3c889e909d8c044186565992e6b87b5aaa9.tar.bz2
Bug 433603 - Get rid of warning messages in org.eclipse.ui.testsrefs/changes/86/25686/3
Removed unnecessary comments, "throws" statements, and added @Override tag if necessary. Change-Id: I251fa2d068ad7bd18badb2ec2b69387c0170fa8b Signed-off-by: Jeanderson Candido <jeandersonbc@gmail.com>
-rw-r--r--tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/adaptable/AdaptableDecoratorTestCase.java20
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/adaptable/AdaptableDecoratorTestCase.java b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/adaptable/AdaptableDecoratorTestCase.java
index 3a8b0f9..9ebfbd9 100644
--- a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/adaptable/AdaptableDecoratorTestCase.java
+++ b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/adaptable/AdaptableDecoratorTestCase.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2014 IBM Corporation 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
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Jeanderson Candido <http://jeandersonbc.github.io> - Bug 433603
*******************************************************************************/
package org.eclipse.ui.tests.adaptable;
@@ -57,6 +58,7 @@ public class AdaptableDecoratorTestCase extends UITestCase implements
ts.addTest(new AdaptableDecoratorTestCase("testRefreshLightContributor"));
return ts;
}
+
/**
* Constructor for DecoratorTestCase.
*
@@ -66,9 +68,7 @@ public class AdaptableDecoratorTestCase extends UITestCase implements
super(testName);
}
- /**
- * Sets up the hierarchy.
- */
+ @Override
protected void doSetUp() throws Exception {
super.doSetUp();
createTestFile();
@@ -92,9 +92,7 @@ public class AdaptableDecoratorTestCase extends UITestCase implements
return WorkbenchPlugin.getDefault().getDecoratorManager();
}
- /**
- * Remove the listener.
- */
+ @Override
protected void doTearDown() throws Exception {
if (testProject != null) {
@@ -115,7 +113,7 @@ public class AdaptableDecoratorTestCase extends UITestCase implements
/**
* Test enabling the contributor
*/
- public void testEnableDecorator() throws CoreException {
+ public void testEnableDecorator() {
getDecoratorManager().updateForEnablementChange();
fullDefinition.setEnabled(true);
lightDefinition.setEnabled(true);
@@ -151,7 +149,7 @@ public class AdaptableDecoratorTestCase extends UITestCase implements
/**
* Refresh the full decorator.
*/
- public void testRefreshLightContributor() throws CoreException {
+ public void testRefreshLightContributor() {
updated = false;
getDecoratorManager().updateForEnablementChange();
@@ -163,9 +161,7 @@ public class AdaptableDecoratorTestCase extends UITestCase implements
}
- /*
- * @see ILabelProviderListener#labelProviderChanged(LabelProviderChangedEvent)
- */
+ @Override
public void labelProviderChanged(LabelProviderChangedEvent event) {
updated = true;
}