Skip to content

Commit 8d143ac

Browse files
authored
Remove unused imports of ServletException (#646)
1 parent 0e1837b commit 8d143ac

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

src/main/java/hudson/tasks/junit/TestObject.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,4 @@ public TestObject getResultInRun(Run<?, ?> run) {
187187
public abstract int getTotalCount();
188188

189189
public abstract History getHistory();
190-
191-
// public abstract Object getDynamic(String token, StaplerRequest req,
192-
// StaplerResponse rsp);
193-
//
194-
// public abstract HttpResponse doSubmitDescription(
195-
// @QueryParameter String description) throws IOException,
196-
// ServletException;
197-
198190
}

src/main/java/hudson/tasks/test/TestObject.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
import java.util.WeakHashMap;
4747
import java.util.logging.Level;
4848
import java.util.logging.Logger;
49-
import javax.servlet.ServletException;
5049
import jenkins.model.Jenkins;
5150
import org.kohsuke.stapler.HttpRedirect;
5251
import org.kohsuke.stapler.HttpResponse;
@@ -480,8 +479,7 @@ public Object getDynamic(String token, StaplerRequest req, StaplerResponse rsp)
480479
}
481480

482481
@RequirePOST
483-
public synchronized HttpResponse doSubmitDescription(@QueryParameter String description)
484-
throws IOException, ServletException {
482+
public synchronized HttpResponse doSubmitDescription(@QueryParameter String description) throws IOException {
485483
Run<?, ?> run = getRun();
486484
if (run == null) {
487485
LOGGER.severe("getRun() is null, can't save description.");

src/main/java/hudson/tasks/test/TestResultProjectAction.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import io.jenkins.plugins.junit.storage.TestResultImpl;
4141
import java.io.IOException;
4242
import java.util.List;
43-
import javax.servlet.ServletException;
4443
import javax.servlet.http.Cookie;
4544
import javax.servlet.http.HttpServletResponse;
4645
import org.kohsuke.stapler.Ancestor;
@@ -172,7 +171,7 @@ private TestResultActionIterable createBuildHistory(final Run<?, ?> lastComplete
172171
* @deprecated Replaced by echarts in TODO
173172
*/
174173
@Deprecated
175-
public void doTrend(final StaplerRequest req, final StaplerResponse rsp) throws IOException, ServletException {
174+
public void doTrend(final StaplerRequest req, final StaplerResponse rsp) throws IOException {
176175
AbstractTestResultAction a = getLastTestResultAction();
177176
if (a != null) {
178177
a.doGraph(req, rsp);
@@ -187,7 +186,7 @@ public void doTrend(final StaplerRequest req, final StaplerResponse rsp) throws
187186
* @deprecated Replaced by echarts in TODO
188187
*/
189188
@Deprecated
190-
public void doTrendMap(final StaplerRequest req, final StaplerResponse rsp) throws IOException, ServletException {
189+
public void doTrendMap(final StaplerRequest req, final StaplerResponse rsp) throws IOException {
191190
AbstractTestResultAction a = getLastTestResultAction();
192191
if (a != null) {
193192
a.doGraphMap(req, rsp);
@@ -199,7 +198,7 @@ public void doTrendMap(final StaplerRequest req, final StaplerResponse rsp) thro
199198
/**
200199
* Changes the test result report display mode.
201200
*/
202-
public void doFlipTrend(final StaplerRequest req, final StaplerResponse rsp) throws IOException, ServletException {
201+
public void doFlipTrend(final StaplerRequest req, final StaplerResponse rsp) throws IOException {
203202
boolean failureOnly = false;
204203

205204
// check the current preference value

0 commit comments

Comments
 (0)