use of org.sonar.server.platform.db.migration.step.MigrationStep in project sonarqube by SonarSource.
the class MigrationContainerPopulatorImpl method populateFromMigrationSteps.
private static void populateFromMigrationSteps(MigrationContainer container) {
MigrationSteps migrationSteps = container.getComponentByType(MigrationSteps.class);
Set<Class<? extends MigrationStep>> classes = new HashSet<>();
migrationSteps.readAll().forEach(step -> {
Class<? extends MigrationStep> stepClass = step.getStepClass();
if (!classes.contains(stepClass)) {
container.add(stepClass);
classes.add(stepClass);
}
});
}
Aggregations