diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-09-02 14:06:49 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-09-02 14:07:04 +0200 |
commit | e0372972bea10819d0e4f04867e523a8460bcf51 (patch) | |
tree | a2cae8eb5b7b3b68b6fb9978b4bc19c18ea09673 /sonar-plugin-api/src | |
parent | f6d670f1aad505c149d9f2e3459f2c74edc77c9e (diff) | |
download | sonarqube-e0372972bea10819d0e4f04867e523a8460bcf51.tar.gz sonarqube-e0372972bea10819d0e4f04867e523a8460bcf51.zip |
SONAR-7722 The project name should not be mandatory
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java | 2 | ||||
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/batch/bootstrap/ProjectDefinitionTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java index 95953da2422..aab2c11c278 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java @@ -208,7 +208,7 @@ public class ProjectDefinition { public String getName() { String name = properties.get(CoreProperties.PROJECT_NAME_PROPERTY); if (StringUtils.isBlank(name)) { - name = "Unnamed - " + getKey(); + name = getKey(); } return name; } diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/batch/bootstrap/ProjectDefinitionTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/batch/bootstrap/ProjectDefinitionTest.java index 9cee607615c..94ddaa4cc40 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/batch/bootstrap/ProjectDefinitionTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/batch/bootstrap/ProjectDefinitionTest.java @@ -62,7 +62,7 @@ public class ProjectDefinitionTest { public void shouldSupportDefaultName() { ProjectDefinition def = ProjectDefinition.create(); def.setKey("myKey"); - assertThat(def.getName()).isEqualTo("Unnamed - myKey"); + assertThat(def.getName()).isEqualTo("myKey"); } @Test |