diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-04-30 10:27:27 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-04-30 10:27:27 +0200 |
commit | d241928142bfb2d83cc748876936af044cda9241 (patch) | |
tree | afbddbd649a37e8c9d54681432fb09f19830b7d5 /plugins | |
parent | 2ca371194a97a3e9a1a188412cc750cd61808b53 (diff) | |
download | sonarqube-d241928142bfb2d83cc748876936af044cda9241.tar.gz sonarqube-d241928142bfb2d83cc748876936af044cda9241.zip |
Fix some other quality flaws
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/AlertsEmailTemplate.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/AlertsEmailTemplate.java b/plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/AlertsEmailTemplate.java index 542d35204f4..a66444ad838 100644 --- a/plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/AlertsEmailTemplate.java +++ b/plugins/sonar-email-notifications-plugin/src/main/java/org/sonar/plugins/emailnotifications/AlertsEmailTemplate.java @@ -52,7 +52,7 @@ public class AlertsEmailTemplate extends EmailTemplate { String alertName = notification.getFieldValue("alertName"); String alertText = notification.getFieldValue("alertText"); String alertLevel = notification.getFieldValue("alertLevel"); - boolean isNewAlert = Boolean.valueOf(notification.getFieldValue("isNewAlert")); + boolean isNewAlert = Boolean.parseBoolean(notification.getFieldValue("isNewAlert")); // Generate text String subject = generateSubject(projectName, alertLevel, isNewAlert); |