diff options
author | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-01 18:09:37 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-01 18:14:12 +0200 |
commit | 4e3dd47b835ff7640bf2cbeaa437ef3fb2798cc5 (patch) | |
tree | a4c9adcfc20fce66fc86b952d3771495d3b783bf | |
parent | ed1ad8229a9e73d1d83fb4adc0fdcf966bfb7d77 (diff) | |
download | sonarqube-4e3dd47b835ff7640bf2cbeaa437ef3fb2798cc5.tar.gz sonarqube-4e3dd47b835ff7640bf2cbeaa437ef3fb2798cc5.zip |
fix quality flaws
-rw-r--r-- | sonar-server/src/main/java/org/sonar/server/activity/index/ActivityNormalizer.java | 2 | ||||
-rw-r--r-- | sonar-server/src/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<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); } } } 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<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); } } } |