Use non-deprecated related sorting fields and methods
Apache 2.0Use non-deprecated related sorting fields and methods.
ai. timefold. solver. migration. v8. SortingMigrationRecipemod run . --recipe= ai. timefold. solver. migration. v8. SortingMigrationRecipeInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Change annotation attribute name
@PlanningVariable(strengthComparatorClass)to@PlanningVariable(comparatorClass) - Change annotation attribute name
@PlanningVariable(strengthWeightFactoryClass)to@PlanningVariable(comparatorFactoryClass) - Change type
NullStrengthComparatortoNullComparator - Change type
NullStrengthWeightFactorytoNullComparatorFactory - Change annotation attribute name
@PlanningEntity(difficultyComparatorClass)to@PlanningEntity(comparatorClass) - Change annotation attribute name
@PlanningEntity(difficultyWeightFactoryClass)to@PlanningEntity(comparatorFactoryClass) - Change type
NullDifficultyComparatortoNullComparator - Change type
NullDifficultyWeightFactorytoNullComparatorFactory - Change method name
ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig getSorterComparatorClass(..)togetComparatorClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig setSorterComparatorClass(..)tosetComparatorClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig withSorterComparatorClass(..)towithComparatorClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig getSorterWeightFactoryClass(..)togetComparatorFactoryClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig setSorterWeightFactoryClass(..)tosetComparatorFactoryClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig withSorterWeightFactoryClass(..)towithComparatorFactoryClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.entity.EntitySelectorConfig getSorterComparatorClass(..)togetComparatorClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.entity.EntitySelectorConfig setSorterComparatorClass(..)tosetComparatorClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.entity.EntitySelectorConfig withSorterComparatorClass(..)towithComparatorClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.entity.EntitySelectorConfig getSorterWeightFactoryClass(..)togetComparatorFactoryClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.entity.EntitySelectorConfig setSorterWeightFactoryClass(..)tosetComparatorFactoryClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.entity.EntitySelectorConfig withSorterWeightFactoryClass(..)towithComparatorFactoryClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.value.ValueSelectorConfig getSorterComparatorClass(..)togetComparatorClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.value.ValueSelectorConfig setSorterComparatorClass(..)tosetComparatorClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.value.ValueSelectorConfig withSorterComparatorClass(..)towithComparatorClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.value.ValueSelectorConfig getSorterWeightFactoryClass(..)togetComparatorFactoryClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.value.ValueSelectorConfig setSorterWeightFactoryClass(..)tosetComparatorFactoryClass - Change method name
ai.timefold.solver.core.config.heuristic.selector.value.ValueSelectorConfig withSorterWeightFactoryClass(..)towithComparatorFactoryClass - Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant