diff options
Diffstat (limited to 'sonar-runner-api/src/main/java/org/sonar/runner/api/RunnerVersion.java')
-rw-r--r-- | sonar-runner-api/src/main/java/org/sonar/runner/api/RunnerVersion.java | 9 |
1 files changed, 5 insertions, 4 deletions
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; + } + } |