diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2012-11-28 16:32:16 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2012-11-28 16:32:25 +0100 |
commit | 04a58d0b3634fa22820ae89562178e74b43aab5a (patch) | |
tree | 4e4d5362c9bd89a3561336a0128f6bbf5182f69e /sonar-plugin-api | |
parent | d530754343162316fcfb52a38fb782114ec3fcca (diff) | |
download | sonarqube-04a58d0b3634fa22820ae89562178e74b43aab5a.tar.gz sonarqube-04a58d0b3634fa22820ae89562178e74b43aab5a.zip |
SONAR-1352 improve differential alert label
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/profiles/Alert.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/Alert.java b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/Alert.java index 891e1e955d9..1afbaef3426 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/Alert.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/Alert.java @@ -230,15 +230,6 @@ public class Alert extends BaseIdentifiable implements Cloneable { return operator.equals(OPERATOR_NOT_EQUALS); } - - public String getAlertLabel(Metric.Level level) { - return new StringBuilder() - .append(getMetric().getName()) - .append(" ").append(getOperator()) - .append(" ") - .append(level.equals(Metric.Level.ERROR) ? getValueError() : getValueWarning()).toString(); - } - @Override public Object clone() { return new Alert(getRulesProfile(), getMetric(), getOperator(), getValueError(), getValueWarning(), getPeriod()); |