diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-02-06 10:50:29 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-02-06 10:50:29 +0100 |
commit | e0a73badff633721360fd042b0c3bb3a581e052c (patch) | |
tree | 324b120561469de984f5bf036e7b272bd0cc544c /sonar-testing-harness/src | |
parent | f2befd8d8e05474a25413fccd6817dceee046e94 (diff) | |
download | sonarqube-e0a73badff633721360fd042b0c3bb3a581e052c.tar.gz sonarqube-e0a73badff633721360fd042b0c3bb3a581e052c.zip |
Fix quality flaws
Diffstat (limited to 'sonar-testing-harness/src')
-rw-r--r-- | sonar-testing-harness/src/main/java/org/sonar/api/server/ws/WsTester.java | 3 | ||||
-rw-r--r-- | sonar-testing-harness/src/main/java/org/sonar/api/server/ws/package-info.java | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/sonar-testing-harness/src/main/java/org/sonar/api/server/ws/WsTester.java b/sonar-testing-harness/src/main/java/org/sonar/api/server/ws/WsTester.java index 568f0b4cb7e..dd66f4ae43a 100644 --- a/sonar-testing-harness/src/main/java/org/sonar/api/server/ws/WsTester.java +++ b/sonar-testing-harness/src/main/java/org/sonar/api/server/ws/WsTester.java @@ -26,6 +26,7 @@ import org.sonar.api.utils.text.JsonWriter; import org.sonar.api.utils.text.XmlWriter; import javax.annotation.CheckForNull; + import java.io.ByteArrayOutputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; @@ -83,7 +84,7 @@ public class WsTester { return params.get(key); } - public Result execute() throws Exception { + public Result execute() { TestResponse response = new TestResponse(); action.handler().handle(this, response); return new Result(response); diff --git a/sonar-testing-harness/src/main/java/org/sonar/api/server/ws/package-info.java b/sonar-testing-harness/src/main/java/org/sonar/api/server/ws/package-info.java new file mode 100644 index 00000000000..40cefaf5428 --- /dev/null +++ b/sonar-testing-harness/src/main/java/org/sonar/api/server/ws/package-info.java @@ -0,0 +1,22 @@ +/* + * SonarQube, open source software quality management tool. + * Copyright (C) 2008-2013 SonarSource + * mailto:contact AT sonarsource DOT com + * + * SonarQube is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * SonarQube is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +@javax.annotation.ParametersAreNonnullByDefault +package org.sonar.api.server.ws; |