diff options
author | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-05-19 14:38:36 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-05-19 14:57:44 +0200 |
commit | 0c7ac68a3bf2af1734f08f3dbd1b346f24885ad8 (patch) | |
tree | ad61d87f7d9f8ffda2099ceb3c787be17338e5ec /sonar-core | |
parent | 120086c8a98a4b95579499a7048cc2375a690f06 (diff) | |
download | sonarqube-0c7ac68a3bf2af1734f08f3dbd1b346f24885ad8.tar.gz sonarqube-0c7ac68a3bf2af1734f08f3dbd1b346f24885ad8.zip |
SONAR-5007 - Implemented activation and qprofile params for WS
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/qualityprofile/db/QualityProfileKey.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/QualityProfileKey.java b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/QualityProfileKey.java index f6677a43d51..7f59ecf5e6d 100644 --- a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/QualityProfileKey.java +++ b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/QualityProfileKey.java @@ -25,7 +25,6 @@ import com.google.common.base.Strings; import java.io.Serializable; /** - * Created by gamars on 05/05/14. * * @since 4.4 */ @@ -51,8 +50,8 @@ public class QualityProfileKey implements Serializable{ * if the format is not valid. */ public static QualityProfileKey parse(String s) { - String[] split = s.split(":"); - Preconditions.checkArgument(split.length == 3, "Bad format of activeRule key: " + s); + String[] split = s.trim().split(":"); + Preconditions.checkArgument(split.length == 2, "Bad format of QualityProfileKey: " + s); return QualityProfileKey.of(split[0], split[1]); } @@ -97,7 +96,7 @@ public class QualityProfileKey implements Serializable{ } /** - * Format is "qProfile:lang", for example "Java:javascript" + * Format is "profile:lang", for example "Java:javascript" */ @Override public String toString() { |