]> source.dussan.org Git - sonarqube.git/commitdiff
fix quality flaws
authorStephane Gamard <stephane.gamard@searchbox.com>
Tue, 1 Jul 2014 16:09:37 +0000 (18:09 +0200)
committerStephane Gamard <stephane.gamard@searchbox.com>
Tue, 1 Jul 2014 16:14:12 +0000 (18:14 +0200)
sonar-server/src/main/java/org/sonar/server/activity/index/ActivityNormalizer.java
sonar-server/src/main/java/org/sonar/server/rule/index/RuleNormalizer.java

index 531caf5cf0a00a1ae1208e5aa38996860c87b263..33361c9493a392ec9f04ce040539f80614c9a617 100644 (file)
@@ -66,7 +66,7 @@ public class ActivityNormalizer extends BaseNormalizer<ActivityDto, String> {
           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);
           }
         }
       }
index f907e993ea6eed1cdf9130b8480989b08c978fbb..b96b5c8a16f8f38e58b902a440f9c2db17873daf 100644 (file)
@@ -64,7 +64,7 @@ public class RuleNormalizer extends BaseNormalizer<RuleDto, RuleKey> {
           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<RuleDto, RuleKey> {
           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);
           }
         }
       }