diff options
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); |