summaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-11-12 12:31:59 +0100
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-11-12 12:31:59 +0100
commit5bf38605be76726351c0831cc67d7141952e4a2e (patch)
treeff1cf70c99e67369767eed01d8c14023f3d40089 /sonar-core
parent130c447b05766d2bf5082b8d56fd186c5bf192cf (diff)
downloadsonarqube-5bf38605be76726351c0831cc67d7141952e4a2e.tar.gz
sonarqube-5bf38605be76726351c0831cc67d7141952e4a2e.zip
SONAR-3952 L10n bundles won't be found in a specific case
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/i18n/I18nClassloader.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/i18n/I18nClassloader.java b/sonar-core/src/main/java/org/sonar/core/i18n/I18nClassloader.java
index 428635b746e..9eb4f43c891 100644
--- a/sonar-core/src/main/java/org/sonar/core/i18n/I18nClassloader.java
+++ b/sonar-core/src/main/java/org/sonar/core/i18n/I18nClassloader.java
@@ -38,10 +38,7 @@ class I18nClassloader extends URLClassLoader {
for (PluginMetadata metadata : pluginRepository.getMetadata()) {
Plugin plugin = pluginRepository.getPlugin(metadata.getKey());
- ClassLoader classloader = plugin.getClass().getClassLoader();
- if (classloader.getResource("org/sonar/l10n/") != null) {
- list.add(classloader);
- }
+ list.add(plugin.getClass().getClassLoader());
}
this.pluginClassloaders = list.toArray(new ClassLoader[list.size()]);