import java.io.*;
import java.util.ArrayList;
import java.util.List;
-import java.util.Locale;
/**
* @since 2.4
return project.getConfiguration().getLong(CoreProperties.FINDBUGS_TIMEOUT_PROPERTY, CoreProperties.FINDBUGS_TIMEOUT_DEFAULT_VALUE);
}
- public Locale getLocale() {
- return new Locale(project.getConfiguration().getString(CoreProperties.CORE_VIOLATION_LOCALE_PROPERTY, CoreProperties.CORE_VIOLATION_LOCALE_DEFAULT_VALUE));
- }
-
private File jsr305Lib;
private File annotationsLib;
import java.net.URL;
import java.util.Enumeration;
import java.util.List;
-import java.util.Locale;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
ClassLoader initialClassLoader = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(FindBugs2.class.getClassLoader());
- // This is a dirty workaround, but unfortunately there is no other way to specify locale for FindBugs - see SONAR-2594
- Locale initialLocale = Locale.getDefault();
- Locale.setDefault(configuration.getLocale());
-
OutputStream xmlOutput = null;
ExecutorService executorService = Executors.newSingleThreadExecutor();
try {
executorService.shutdown();
IOUtils.closeQuietly(xmlOutput);
Thread.currentThread().setContextClassLoader(initialClassLoader);
- Locale.setDefault(initialLocale);
}
}