From 81c526901fb2f10eca77c7cccb306c959da4469b Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 3 Jun 2015 12:40:18 +0200 Subject: Fix quality flaws --- .../java/org/sonar/plugins/emailnotifications/AlertsEmailTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/sonar-email-notifications-plugin/src') 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 a66444ad838..2ea0faf34f2 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 @@ -65,7 +65,7 @@ public class AlertsEmailTemplate extends EmailTemplate { .setMessage(messageBody); } - private String generateSubject(String projectName, String alertLevel, boolean isNewAlert) { + private static String generateSubject(String projectName, String alertLevel, boolean isNewAlert) { StringBuilder subjectBuilder = new StringBuilder(); if (Metric.Level.OK.toString().equals(alertLevel)) { subjectBuilder.append("\"").append(projectName).append("\" is back to green"); -- cgit v1.2.3