aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-runner-api/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-runner-api/src/main')
-rw-r--r--sonar-runner-api/src/main/java/org/sonar/runner/api/ForkedRunner.java3
-rw-r--r--sonar-runner-api/src/main/java/org/sonar/runner/api/RunnerVersion.java9
-rw-r--r--sonar-runner-api/src/main/java/org/sonar/runner/api/package-info.java3
3 files changed, 8 insertions, 7 deletions
diff --git a/sonar-runner-api/src/main/java/org/sonar/runner/api/ForkedRunner.java b/sonar-runner-api/src/main/java/org/sonar/runner/api/ForkedRunner.java
index 9dff8ed..02ae333 100644
--- a/sonar-runner-api/src/main/java/org/sonar/runner/api/ForkedRunner.java
+++ b/sonar-runner-api/src/main/java/org/sonar/runner/api/ForkedRunner.java
@@ -194,8 +194,7 @@ public class ForkedRunner extends Runner<ForkedRunner> {
if (status != 0) {
if (processMonitor != null && processMonitor.stop()) {
stdOut.consumeLine(String.format("SonarQube Runner was stopped [status=%s]", status));
- }
- else {
+ } else {
throw new IllegalStateException("Error status [command: " + forkCommand.command + "]: " + status);
}
}
diff --git a/sonar-runner-api/src/main/java/org/sonar/runner/api/RunnerVersion.java b/sonar-runner-api/src/main/java/org/sonar/runner/api/RunnerVersion.java
index e5a52c7..2aa3b97 100644
--- a/sonar-runner-api/src/main/java/org/sonar/runner/api/RunnerVersion.java
+++ b/sonar-runner-api/src/main/java/org/sonar/runner/api/RunnerVersion.java
@@ -32,10 +32,6 @@ public enum RunnerVersion {
private String version;
- public static String version() {
- return INSTANCE.version;
- }
-
private RunnerVersion() {
Scanner scanner = new Scanner(getClass().getResourceAsStream("/org/sonar/runner/api/version.txt"), "UTF-8");
try {
@@ -44,4 +40,9 @@ public enum RunnerVersion {
scanner.close();
}
}
+
+ public static String version() {
+ return INSTANCE.version;
+ }
+
}
diff --git a/sonar-runner-api/src/main/java/org/sonar/runner/api/package-info.java b/sonar-runner-api/src/main/java/org/sonar/runner/api/package-info.java
index b12772c..cebd22d 100644
--- a/sonar-runner-api/src/main/java/org/sonar/runner/api/package-info.java
+++ b/sonar-runner-api/src/main/java/org/sonar/runner/api/package-info.java
@@ -20,4 +20,5 @@
@ParametersAreNonnullByDefault
package org.sonar.runner.api;
-import javax.annotation.ParametersAreNonnullByDefault; \ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
+