From: Stephane Gamard Date: Tue, 1 Jul 2014 16:09:37 +0000 (+0200) Subject: fix quality flaws X-Git-Tag: 4.4-RC1~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4e3dd47b835ff7640bf2cbeaa437ef3fb2798cc5;p=sonarqube.git fix quality flaws --- diff --git a/sonar-server/src/main/java/org/sonar/server/activity/index/ActivityNormalizer.java b/sonar-server/src/main/java/org/sonar/server/activity/index/ActivityNormalizer.java index 531caf5cf0a..33361c9493a 100644 --- a/sonar-server/src/main/java/org/sonar/server/activity/index/ActivityNormalizer.java +++ b/sonar-server/src/main/java/org/sonar/server/activity/index/ActivityNormalizer.java @@ -66,7 +66,7 @@ public class ActivityNormalizer extends BaseNormalizer { try { fields.add(IndexField.class.cast(classField.get(null))); } catch (IllegalAccessException e) { - throw new IllegalStateException("Could not access Field '" + classField.getName() + "'"); + throw new IllegalStateException("Could not access Field '" + classField.getName() + "'", e); } } } diff --git a/sonar-server/src/main/java/org/sonar/server/rule/index/RuleNormalizer.java b/sonar-server/src/main/java/org/sonar/server/rule/index/RuleNormalizer.java index f907e993ea6..b96b5c8a16f 100644 --- a/sonar-server/src/main/java/org/sonar/server/rule/index/RuleNormalizer.java +++ b/sonar-server/src/main/java/org/sonar/server/rule/index/RuleNormalizer.java @@ -64,7 +64,7 @@ public class RuleNormalizer extends BaseNormalizer { try { fields.add(IndexField.class.cast(classField.get(null))); } catch (IllegalAccessException e) { - throw new IllegalStateException("Could not access Field '" + classField.getName() + "'"); + throw new IllegalStateException("Could not access Field '" + classField.getName() + "'", e); } } } @@ -126,7 +126,7 @@ public class RuleNormalizer extends BaseNormalizer { try { fields.add(IndexField.class.cast(classField.get(null))); } catch (IllegalAccessException e) { - throw new IllegalStateException("Could not access Field '" + classField.getName() + "'"); + throw new IllegalStateException("Could not access Field '" + classField.getName() + "'", e); } } }