diff options
author | ameya <ask1604@gmail.com> | 2017-10-11 13:03:03 -0700 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-10-16 09:34:31 +0200 |
commit | 3ab664433645b5e752c2447ce278617611aa9759 (patch) | |
tree | a7bcf5bcaa91c8ffbd9725dea124e010a964f54c /sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputModuleHierarchyProvider.java | |
parent | 18af892e0df11889eb699c4e562e6bbd979b559f (diff) | |
download | sonarqube-3ab664433645b5e752c2447ce278617611aa9759.tar.gz sonarqube-3ab664433645b5e752c2447ce278617611aa9759.zip |
Fix Quality flaws
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputModuleHierarchyProvider.java')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputModuleHierarchyProvider.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputModuleHierarchyProvider.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputModuleHierarchyProvider.java index aaa8cf5f54d..459c97075ae 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputModuleHierarchyProvider.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/InputModuleHierarchyProvider.java @@ -42,7 +42,7 @@ public class InputModuleHierarchyProvider extends ProviderAdapter { validator.validate(projectReactor); // 3 Create modules and the hierarchy - DefaultInputModule root = new DefaultInputModule(projectReactor.getRoot(), batchIdGenerator.get()); + DefaultInputModule root = new DefaultInputModule(projectReactor.getRoot(), batchIdGenerator.getAsInt()); Map<DefaultInputModule, DefaultInputModule> parents = createChildren(root, batchIdGenerator, new HashMap<>()); if (parents.isEmpty()) { hierarchy = new DefaultInputModuleHierarchy(root); @@ -56,7 +56,7 @@ public class InputModuleHierarchyProvider extends ProviderAdapter { private static Map<DefaultInputModule, DefaultInputModule> createChildren(DefaultInputModule parent, BatchIdGenerator batchIdGenerator, Map<DefaultInputModule, DefaultInputModule> parents) { for (ProjectDefinition def : parent.definition().getSubProjects()) { - DefaultInputModule child = new DefaultInputModule(def, batchIdGenerator.get()); + DefaultInputModule child = new DefaultInputModule(def, batchIdGenerator.getAsInt()); parents.put(child, parent); createChildren(child, batchIdGenerator, parents); } |