aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-10-10 10:36:17 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-10-10 10:36:17 +0400
commit82e73cde9497b949cd40968df6076e5b89b61c98 (patch)
tree33548d346f8593d6b1fe1e8b34f7c315fc9a26e8
parent93e8d12e65fb151211aedf76f9c99b9bfa3a7b40 (diff)
downloadsonarqube-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.java6
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;
}
}