]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2873 FindBugs should be disposed after usage
authorEvgeny Mandrikov <mandrikov@gmail.com>
Mon, 10 Oct 2011 06:36:17 +0000 (10:36 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Mon, 10 Oct 2011 06:36:17 +0000 (10:36 +0400)
plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java

index c545b63243c035a050033ab453b4d8c814001b97..6beceb7badcc0e24104a8da4adc7238e787320f3 100644 (file)
@@ -134,7 +134,11 @@ public class FindbugsExecutor implements BatchExtension {
     }
 
     public Object call() throws Exception {
-      engine.execute();
+      try {
+        engine.execute();
+      } finally {
+        engine.dispose();
+      }
       return null;
     }
   }