diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-08-02 19:31:32 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-08-02 19:31:32 +0200 |
commit | 9a4e0131a585315318fe4aabf7dc0a7f95fd7433 (patch) | |
tree | 737b081acdb4af7f1c44ca2856cc6c6f4b517d1c /sonar-batch | |
parent | 1f5682409af97410aca5e545ccbd40b6b037e6a9 (diff) | |
download | sonarqube-9a4e0131a585315318fe4aabf7dc0a7f95fd7433.tar.gz sonarqube-9a4e0131a585315318fe4aabf7dc0a7f95fd7433.zip |
Some code improvements
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/ProjectTree.java | 6 | ||||
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Reactor.java | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/ProjectTree.java b/sonar-batch/src/main/java/org/sonar/batch/ProjectTree.java index 6f848ce7e37..10548b7169e 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/ProjectTree.java +++ b/sonar-batch/src/main/java/org/sonar/batch/ProjectTree.java @@ -40,8 +40,10 @@ public class ProjectTree { private List<Project> projects; private Map<ProjectDefinition, Project> projectsByDef; - - public ProjectTree(ProjectReactor projectReactor, DatabaseSession databaseSession, /* Must be executed after ProjectBuilders */ ProjectBuilder[] builders) { + + public ProjectTree(ProjectReactor projectReactor, //NOSONAR the unused parameter 'builders' is used for the startup order of components + DatabaseSession databaseSession, + /* Must be executed after ProjectBuilders */ ProjectBuilder[] builders) { this(projectReactor, databaseSession); } diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Reactor.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Reactor.java index 9301cd0ce48..216996a9343 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Reactor.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Reactor.java @@ -36,7 +36,7 @@ public class Reactor { this.root = root; } - public Reactor(List<ProjectDefinition> sortedProjects) { + public Reactor(List<ProjectDefinition> sortedProjects) {//NOSONAR unused parameter is kept for backward-compatibility of API throw new IllegalArgumentException("This constructor is not supported anymore"); } |