diff options
author | Alexander Kurtakov | 2012-08-29 15:55:28 +0000 |
---|---|---|
committer | Roland Grunberg | 2012-08-29 17:56:43 +0000 |
commit | ede09bca9df78b00580dbeb04f5b9c30cd315ae3 (patch) | |
tree | b6b4a134d605f11075c9173d035ee6c5d4644385 /oprofile | |
parent | 5525b55a3d57b688d2938da68365534d1a1af0b6 (diff) | |
download | org.eclipse.linuxtools-ede09bca9df78b00580dbeb04f5b9c30cd315ae3.tar.gz org.eclipse.linuxtools-ede09bca9df78b00580dbeb04f5b9c30cd315ae3.tar.xz org.eclipse.linuxtools-ede09bca9df78b00580dbeb04f5b9c30cd315ae3.zip |
Remove exceptions that are declared but not thrown.
Change-Id: Ibf6cfc6a1b3a100d3de72758da86937051326349
Reviewed-on: https://git.eclipse.org/r/7491
Tested-by: Hudson CI
Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
IP-Clean: Roland Grunberg <rgrunber@redhat.com>
Tested-by: Roland Grunberg <rgrunber@redhat.com>
Diffstat (limited to 'oprofile')
9 files changed, 10 insertions, 10 deletions
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestDataModel.java b/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestDataModel.java index b66e262b50..7a9cab34f2 100644 --- a/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestDataModel.java +++ b/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestDataModel.java @@ -25,7 +25,7 @@ public class TestDataModel extends TestCase { } @Override - protected void setUp() throws Exception { + protected void setUp() { _testRoot = new TestingOpModelRoot(); _testRoot.refreshModel(); } diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestInfoParse.java b/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestInfoParse.java index 035eb85f37..5bed1f7f3e 100644 --- a/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestInfoParse.java +++ b/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestInfoParse.java @@ -168,7 +168,7 @@ public class TestInfoParse extends TestCase { assertEquals(0, info_0ctr.getNrCounters()); } - public void testUnitMask() throws Exception { + public void testUnitMask() { //test types of masks setting/unsetting OpUnitMask mask_bit1 = info.getEvents(0)[1].getUnitMask(), // mask_bit2 = info.getEvents(1)[1].getUnitMask(), @@ -401,7 +401,7 @@ public class TestInfoParse extends TestCase { assertEquals(1, mask_invalid.getMaskValue()); } - public void testInfo() throws Exception { + public void testInfo() { OpEvent[] result = info.getEvents(-1); assertEquals(0, result.length); diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestModelDataParse.java b/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestModelDataParse.java index fdba62b2b0..8acbc6ec10 100644 --- a/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestModelDataParse.java +++ b/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestModelDataParse.java @@ -174,7 +174,7 @@ public class TestModelDataParse extends TestCase { assertEquals("", parsedErrorImage.getName()); //$NON-NLS-1$ } - public void testStringOutput() throws Exception { + public void testStringOutput() { assertEquals(IMAGE_OUTPUT, parsedImage.toString()); assertEquals(IMAGE_OUTPUT_WITHTAB, parsedImage.toString("\t")); //$NON-NLS-1$ } diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestSessionsParse.java b/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestSessionsParse.java index 8a08a1271e..461b0edbb1 100644 --- a/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestSessionsParse.java +++ b/oprofile/org.eclipse.linuxtools.oprofile.core.tests/src/org/eclipse/linuxtools/oprofile/core/tests/TestSessionsParse.java @@ -105,7 +105,7 @@ public class TestSessionsParse extends TestCase { assertEquals(evt3, evt3_ss_s2.getEvent()); } - public void testStringOutput() throws Exception { + public void testStringOutput() { assertEquals(EVENT1_OUTPUT, eventList.get(0).toString()); assertEquals(EVENT1_OUTPUT_WITHTAB, eventList.get(0).toString("\t")); //$NON-NLS-1$ assertEquals(EVENT2_OUTPUT, eventList.get(1).toString()); diff --git a/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestLaunching.java b/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestLaunching.java index 640f16512c..cbe81b8b6d 100644 --- a/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestLaunching.java +++ b/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestLaunching.java @@ -58,7 +58,7 @@ public class TestLaunching extends AbstractTest { } @Override - protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) throws CoreException { + protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) { OprofileEventConfigTab configTab = new OprofileEventConfigTab(); OprofileSetupTab setupTab = new OprofileSetupTab(); configTab.setDefaults(wc); diff --git a/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestLaunchingExternalProject.java b/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestLaunchingExternalProject.java index c5137ea105..f9472f39ea 100644 --- a/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestLaunchingExternalProject.java +++ b/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestLaunchingExternalProject.java @@ -79,7 +79,7 @@ public class TestLaunchingExternalProject extends AbstractTest { // Implemented abstract method of AbstractTest @Override - protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) throws CoreException { + protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) { OprofileEventConfigTab configTab = new OprofileEventConfigTab(); OprofileSetupTab setupTab = new OprofileSetupTab(); configTab.setDefaults(wc); diff --git a/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestManualLaunching.java b/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestManualLaunching.java index d6a786d166..0134fa0949 100644 --- a/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestManualLaunching.java +++ b/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestManualLaunching.java @@ -81,7 +81,7 @@ public class TestManualLaunching extends AbstractTest { } @Override - protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) throws CoreException { + protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) { OprofileEventConfigTab configTab = new OprofileEventConfigTab(); OprofileSetupTab setupTab = new OprofileSetupTab(); configTab.setDefaults(wc); diff --git a/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestSetup.java b/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestSetup.java index a7e416d172..37332c3e6b 100644 --- a/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestSetup.java +++ b/oprofile/org.eclipse.linuxtools.oprofile.launch.tests/src/org/eclipse/linuxtools/oprofile/launch/tests/TestSetup.java @@ -54,7 +54,7 @@ public class TestSetup extends AbstractTest { } @Override - protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) throws CoreException { + protected void setProfileAttributes(ILaunchConfigurationWorkingCopy wc) { OprofileEventConfigTab configTab = new OprofileEventConfigTab(); OprofileSetupTab setupTab = new OprofileSetupTab(); configTab.setDefaults(wc); diff --git a/oprofile/org.eclipse.linuxtools.oprofile.ui.tests/src/org/eclipse/linuxtools/oprofile/ui/tests/TestUiDataModel.java b/oprofile/org.eclipse.linuxtools.oprofile.ui.tests/src/org/eclipse/linuxtools/oprofile/ui/tests/TestUiDataModel.java index bc70b92c1a..460e939564 100644 --- a/oprofile/org.eclipse.linuxtools.oprofile.ui.tests/src/org/eclipse/linuxtools/oprofile/ui/tests/TestUiDataModel.java +++ b/oprofile/org.eclipse.linuxtools.oprofile.ui.tests/src/org/eclipse/linuxtools/oprofile/ui/tests/TestUiDataModel.java @@ -45,7 +45,7 @@ public class TestUiDataModel extends TestCase { } @Override - protected void setUp() throws Exception { + protected void setUp() { _uiModelRoot = new TestingUiModelRoot(); _uiModelRoot.refreshModel(); |