Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2012-08-29 11:55:28 -0400
committerRoland Grunberg2012-08-29 13:56:43 -0400
commitede09bca9df78b00580dbeb04f5b9c30cd315ae3 (patch)
treeb6b4a134d605f11075c9173d035ee6c5d4644385 /systemtap/org.eclipse.linuxtools.systemtap.ui.tests
parent5525b55a3d57b688d2938da68365534d1a1af0b6 (diff)
downloadorg.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 'systemtap/org.eclipse.linuxtools.systemtap.ui.tests')
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapGuiMockProcess.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapGuiMockProcess.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapGuiMockProcess.java
index 3c31f495e7..0119385e0d 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapGuiMockProcess.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapGuiMockProcess.java
@@ -1,6 +1,5 @@
package org.eclipse.linuxtools.systemtap.ui.tests;
-import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
@@ -24,7 +23,7 @@ public class SystemtapGuiMockProcess extends Process {
public InputStream getErrorStream() {
return new InputStream() {
@Override
- public int read() throws IOException {
+ public int read() {
return -1;
}
};
@@ -34,7 +33,7 @@ public class SystemtapGuiMockProcess extends Process {
public InputStream getInputStream() {
return new InputStream() {
@Override
- public int read() throws IOException {
+ public int read() {
return -1;
}
};
@@ -43,13 +42,14 @@ public class SystemtapGuiMockProcess extends Process {
@Override
public OutputStream getOutputStream() {
return new OutputStream() {
- public void write(int b) throws IOException {
+ @Override
+ public void write(int b) {
}
};
}
@Override
- public int waitFor() throws InterruptedException {
+ public int waitFor() {
return exitcode;
}

Back to the top