diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-10-10 10:36:17 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-10-10 10:36:17 +0400 |
commit | 82e73cde9497b949cd40968df6076e5b89b61c98 (patch) | |
tree | 33548d346f8593d6b1fe1e8b34f7c315fc9a26e8 | |
parent | 93e8d12e65fb151211aedf76f9c99b9bfa3a7b40 (diff) | |
download | sonarqube-82e73cde9497b949cd40968df6076e5b89b61c98.tar.gz sonarqube-82e73cde9497b949cd40968df6076e5b89b61c98.zip |
SONAR-2873 FindBugs should be disposed after usage
-rw-r--r-- | plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java index c545b63243c..6beceb7badc 100644 --- a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java +++ b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java @@ -134,7 +134,11 @@ public class FindbugsExecutor implements BatchExtension { } public Object call() throws Exception { - engine.execute(); + try { + engine.execute(); + } finally { + engine.dispose(); + } return null; } } |