diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2018-01-10 21:14:52 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2018-01-14 20:37:37 +0100 |
commit | d55f047c445daf698ccde5f0af9d0669804c818b (patch) | |
tree | 990d01ddad6fd40aff012e1f40bfc8ce77918670 /tests/plugins | |
parent | 4a5be9fbaba0b9729e909eec935852c56f6e71e2 (diff) | |
download | sonarqube-d55f047c445daf698ccde5f0af9d0669804c818b.tar.gz sonarqube-d55f047c445daf698ccde5f0af9d0669804c818b.zip |
Cleanup code based on Intellij inspections
Diffstat (limited to 'tests/plugins')
5 files changed, 7 insertions, 7 deletions
diff --git a/tests/plugins/fake-governance-plugin/src/main/java/ce/ws/BombActivatorAction.java b/tests/plugins/fake-governance-plugin/src/main/java/ce/ws/BombActivatorAction.java index 207661f5ada..31be2ce3bc1 100644 --- a/tests/plugins/fake-governance-plugin/src/main/java/ce/ws/BombActivatorAction.java +++ b/tests/plugins/fake-governance-plugin/src/main/java/ce/ws/BombActivatorAction.java @@ -48,7 +48,7 @@ public class BombActivatorAction implements FakeGoVWsAction { } @Override - public void handle(Request request, Response response) throws Exception { + public void handle(Request request, Response response) { BombType bombType = BombType.valueOf(request.mandatoryParam(PARAM_BOMB_TYPE)); bombConfig.reset(); diff --git a/tests/plugins/fake-governance-plugin/src/main/java/ce/ws/SubmitAction.java b/tests/plugins/fake-governance-plugin/src/main/java/ce/ws/SubmitAction.java index 35744e5ef5b..fb47686044e 100644 --- a/tests/plugins/fake-governance-plugin/src/main/java/ce/ws/SubmitAction.java +++ b/tests/plugins/fake-governance-plugin/src/main/java/ce/ws/SubmitAction.java @@ -46,7 +46,7 @@ public class SubmitAction implements FakeGoVWsAction { } @Override - public void handle(Request request, Response response) throws Exception { + public void handle(Request request, Response response) { String type = request.mandatoryParam(PARAM_TYPE); CeTaskSubmit.Builder submit = ceQueue.prepareSubmit(); diff --git a/tests/plugins/fake-governance-plugin/src/main/java/systemPasscode/SystemPasscodeWebService.java b/tests/plugins/fake-governance-plugin/src/main/java/systemPasscode/SystemPasscodeWebService.java index ee87f516af1..b1682ae6656 100644 --- a/tests/plugins/fake-governance-plugin/src/main/java/systemPasscode/SystemPasscodeWebService.java +++ b/tests/plugins/fake-governance-plugin/src/main/java/systemPasscode/SystemPasscodeWebService.java @@ -41,7 +41,7 @@ public class SystemPasscodeWebService implements WebService, RequestHandler { } @Override - public void handle(Request request, Response response) throws Exception { + public void handle(Request request, Response response) { if (!passcode.isValid(request)) { response.stream().setStatus(HttpURLConnection.HTTP_UNAUTHORIZED); } diff --git a/tests/plugins/fake-governance-plugin/src/main/java/workerCount/RefreshWorkerCountAction.java b/tests/plugins/fake-governance-plugin/src/main/java/workerCount/RefreshWorkerCountAction.java index 61ad50dcc9b..df37590a2ab 100644 --- a/tests/plugins/fake-governance-plugin/src/main/java/workerCount/RefreshWorkerCountAction.java +++ b/tests/plugins/fake-governance-plugin/src/main/java/workerCount/RefreshWorkerCountAction.java @@ -54,7 +54,7 @@ public class RefreshWorkerCountAction implements CeWsAction { } @Override - public void handle(Request request, Response response) throws Exception { + public void handle(Request request, Response response) { String count = request.getParam(PARAM_COUNT).getValue(); try (DbSession dbSession = dbClient.openSession(false)) { dbClient.propertiesDao().saveProperty(new PropertyDto() diff --git a/tests/plugins/ws-plugin/src/main/java/LocalCallWebService.java b/tests/plugins/ws-plugin/src/main/java/LocalCallWebService.java index dd579ad552a..dfd39e39876 100644 --- a/tests/plugins/ws-plugin/src/main/java/LocalCallWebService.java +++ b/tests/plugins/ws-plugin/src/main/java/LocalCallWebService.java @@ -47,7 +47,7 @@ public final class LocalCallWebService implements WebService { private class ProtobufHandler implements RequestHandler { @Override - public void handle(Request request, Response response) throws Exception { + public void handle(Request request, Response response) { WsClient client = wsClientFactory.newClient(request.localConnector()); Ce.TaskTypesWsResponse ceTaskTypes = client.ce().taskTypes(); @@ -57,7 +57,7 @@ public final class LocalCallWebService implements WebService { private class JsonHandler implements RequestHandler { @Override - public void handle(Request request, Response response) throws Exception { + public void handle(Request request, Response response) { WsClient client = wsClientFactory.newClient(request.localConnector()); WsResponse jsonResponse = client.wsConnector().call(new GetRequest("api/issues/search")); @@ -70,7 +70,7 @@ public final class LocalCallWebService implements WebService { private class RequirePermissionHandler implements RequestHandler { @Override - public void handle(Request request, Response response) throws Exception { + public void handle(Request request, Response response) { WsClient client = wsClientFactory.newClient(request.localConnector()); WsResponse jsonResponse = client.wsConnector().call(new GetRequest("api/system/info")); |