diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2017-06-30 15:06:49 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2017-07-04 23:47:46 +0200 |
commit | ccde391eea15c4e3661031778c8725c145845e48 (patch) | |
tree | 588fb63d1a1200ba9dac149757c8c5e07474f026 /sonar-plugin-api/src | |
parent | 9a7dcc5b3ce82c75de74ea3fc20e8d69f8e43a24 (diff) | |
download | sonarqube-ccde391eea15c4e3661031778c8725c145845e48.tar.gz sonarqube-ccde391eea15c4e3661031778c8725c145845e48.zip |
SONAR-9478 Missing Settings -> Configuration replacement
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java | 4 |
1 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 9bf8eef05b4..19cc04bdaaf 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 @@ -181,8 +181,8 @@ public class ProjectDefinition { String branch = properties.get(CoreProperties.PROJECT_BRANCH_PROPERTY); if (StringUtils.isNotBlank(branch)) { return branch; - } else if (getParent() != null) { - return getParent().getBranch(); + } else if (parent != null) { + return parent.getBranch(); } return null; } |