diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-03-10 10:52:51 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-03-21 16:44:04 +0100 |
commit | b096cada959198f345b71cc9b0e65393c082d97e (patch) | |
tree | 051fdf4ec5d58589a2c76475386ac5acf4c045de /server/sonar-process/src | |
parent | 8a9738d1bebdb4584b40370fd45e43e898e29a15 (diff) | |
download | sonarqube-b096cada959198f345b71cc9b0e65393c082d97e.tar.gz sonarqube-b096cada959198f345b71cc9b0e65393c082d97e.zip |
SONAR-7435 DefaultProcessCommands close() doesn't throw any exception
this make writing try-with-resource easier
Diffstat (limited to 'server/sonar-process/src')
3 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/AllProcessesCommands.java b/server/sonar-process/src/main/java/org/sonar/process/AllProcessesCommands.java index 512cd788bab..d22a6ba1050 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/AllProcessesCommands.java +++ b/server/sonar-process/src/main/java/org/sonar/process/AllProcessesCommands.java @@ -269,7 +269,7 @@ public class AllProcessesCommands { } @Override - public void close() throws Exception { + public void close() { endWatch(); } } diff --git a/server/sonar-process/src/main/java/org/sonar/process/DefaultProcessCommands.java b/server/sonar-process/src/main/java/org/sonar/process/DefaultProcessCommands.java index a617ea4580b..04a608fef06 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/DefaultProcessCommands.java +++ b/server/sonar-process/src/main/java/org/sonar/process/DefaultProcessCommands.java @@ -117,7 +117,7 @@ public class DefaultProcessCommands implements ProcessCommands { } @Override - public void close() throws Exception { + public void close() { allProcessesCommands.close(); } } diff --git a/server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java b/server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java index 1057ad54158..482029b81d8 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java +++ b/server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java @@ -28,7 +28,8 @@ import java.io.File; * <li>stop/restart a specific processes</li> * </ul> * - * @see DefaultProcessCommands#DefaultProcessCommands(File, int) + * @see DefaultProcessCommands#main(File, int) + * @see DefaultProcessCommands#secondary(File, int) */ public interface ProcessCommands extends AutoCloseable { |