aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-04-30 10:27:27 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-04-30 10:27:27 +0200
commitd241928142bfb2d83cc748876936af044cda9241 (patch)
treeafbddbd649a37e8c9d54681432fb09f19830b7d5 /plugins
parent2ca371194a97a3e9a1a188412cc750cd61808b53 (diff)
downloadsonarqube-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.java2
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);