From 4e3dd47b835ff7640bf2cbeaa437ef3fb2798cc5 Mon Sep 17 00:00:00 2001 From: Stephane Gamard Date: Tue, 1 Jul 2014 18:09:37 +0200 Subject: [PATCH] fix quality flaws --- .../org/sonar/server/activity/index/ActivityNormalizer.java | 2 +- .../main/java/org/sonar/server/rule/index/RuleNormalizer.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } } } -- 2.39.5