diff options
author | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-06-04 13:41:25 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-06-04 14:30:20 +0200 |
commit | 661cb58054b03a3372da6d428b2027c0309062d5 (patch) | |
tree | 49539e1f92cd0b10b49a74ab0127d5bc3470701a /sonar-core | |
parent | 4ee4fffc3db341eafbc375bb16d22ed4a579198c (diff) | |
download | sonarqube-661cb58054b03a3372da6d428b2027c0309062d5.tar.gz sonarqube-661cb58054b03a3372da6d428b2027c0309062d5.zip |
SONAR-5007 - Switched to native scripts for ListUpdate (fixed routing)
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleParamDto.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleParamDto.java b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleParamDto.java index 401f1600b50..70bc208b4f4 100644 --- a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleParamDto.java +++ b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleParamDto.java @@ -21,6 +21,8 @@ package org.sonar.core.qualityprofile.db; import com.google.common.base.Preconditions; +import org.apache.commons.lang.builder.ReflectionToStringBuilder; +import org.apache.commons.lang.builder.ToStringStyle; import org.sonar.core.rule.RuleParamDto; import java.util.Collection; @@ -81,6 +83,11 @@ public class ActiveRuleParamDto { return this; } + @Override + public String toString() { + return new ReflectionToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).toString(); + } + public static ActiveRuleParamDto createFor(RuleParamDto param) { Preconditions.checkArgument(param.getId() != null, "Parameter is not persisted"); return new ActiveRuleParamDto() |