aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-findbugs-plugin/src
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-10-27 01:59:07 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-10-27 02:01:47 +0400
commit5570820af81ea3549c9e95c56534f39c8afa123c (patch)
tree13fca06c3ced3b53f685384f1b5f87e9780ff11d /plugins/sonar-findbugs-plugin/src
parent2b65589c5e5549ac2bd7db4e858feb66bd6dbab4 (diff)
downloadsonarqube-5570820af81ea3549c9e95c56534f39c8afa123c.tar.gz
sonarqube-5570820af81ea3549c9e95c56534f39c8afa123c.zip
Revert "SONAR-2594 FindBugs plugin should support localized violations"
This reverts commit 84d96bf6ada999fe22db0551b3e9d56f6605c9bd.
Diffstat (limited to 'plugins/sonar-findbugs-plugin/src')
-rw-r--r--plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsConfiguration.java5
-rw-r--r--plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsExecutor.java6
2 files changed, 0 insertions, 11 deletions
diff --git a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsConfiguration.java b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsConfiguration.java
index 9526f7975c2..21057ea4663 100644
--- a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsConfiguration.java
+++ b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsConfiguration.java
@@ -35,7 +35,6 @@ import org.sonar.plugins.findbugs.xml.Match;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
-import java.util.Locale;
/**
* @since 2.4
@@ -122,10 +121,6 @@ public class FindbugsConfiguration implements BatchExtension {
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;
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 cd0d1fb175a..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
@@ -41,7 +41,6 @@ import java.lang.reflect.Field;
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;
@@ -65,10 +64,6 @@ public class FindbugsExecutor implements BatchExtension {
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 {
@@ -127,7 +122,6 @@ public class FindbugsExecutor implements BatchExtension {
executorService.shutdown();
IOUtils.closeQuietly(xmlOutput);
Thread.currentThread().setContextClassLoader(initialClassLoader);
- Locale.setDefault(initialLocale);
}
}