Skip to content

Commit

Permalink
fix: stop verbose output by reusing worker process
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Mar 18, 2020
1 parent 866a85d commit 4e47604
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package com.github.spotbugs.snom.internal;

import com.github.spotbugs.snom.SpotBugsTask;
import edu.umd.cs.findbugs.DetectorFactoryCollection;
import edu.umd.cs.findbugs.FindBugs;
import edu.umd.cs.findbugs.FindBugs2;
import edu.umd.cs.findbugs.TextUICommandLine;
Expand Down Expand Up @@ -80,6 +81,7 @@ public abstract static class SpotBugsExecutor implements WorkAction<SpotBugsWork
public void execute() {
SpotBugsWorkParameters params = getParameters();
String[] args = params.getArguments().get().toArray(new String[0]);
DetectorFactoryCollection.resetInstance(new DetectorFactoryCollection());

try {
edu.umd.cs.findbugs.Version.printVersion(false);
Expand Down

0 comments on commit 4e47604

Please sign in to comment.