PlanningVariable's nullable is newly called unassignedValues

Apache 2.0

Removes references to null vars and replace them with unassigned values.

ai.timefold.solver.migration.v8.NullableRecipe
mod run . --recipe=ai.timefold.solver.migration.v8.NullableRecipe

Install 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.

  1. Change method name ai.timefold.solver.core.api.score.stream.ConstraintFactory forEachIncludingNullVars(Class) to forEachIncludingUnassigned
  2. Change method name ai.timefold.solver.core.api.score.stream.uni.UniConstraintStream ifExistsIncludingNullVars(..) to ifExistsIncludingUnassigned
  3. Change method name ai.timefold.solver.core.api.score.stream.uni.UniConstraintStream ifExistsOtherIncludingNullVars(..) to ifExistsOtherIncludingUnassigned
  4. Change method name ai.timefold.solver.core.api.score.stream.uni.UniConstraintStream ifNotExistsIncludingNullVars(..) to ifNotExistsIncludingUnassigned
  5. Change method name ai.timefold.solver.core.api.score.stream.uni.UniConstraintStream ifNotExistsOtherIncludingNullVars(..) to ifNotExistsOtherIncludingUnassigned
  6. Change method name ai.timefold.solver.core.api.score.stream.bi.BiConstraintStream ifExistsIncludingNullVars(..) to ifExistsIncludingUnassigned
  7. Change method name ai.timefold.solver.core.api.score.stream.bi.BiConstraintStream ifNotExistsIncludingNullVars(..) to ifNotExistsIncludingUnassigned
  8. Change method name ai.timefold.solver.core.api.score.stream.tri.TriConstraintStream ifExistsIncludingNullVars(..) to ifExistsIncludingUnassigned
  9. Change method name ai.timefold.solver.core.api.score.stream.tri.TriConstraintStream ifNotExistsIncludingNullVars(..) to ifNotExistsIncludingUnassigned
  10. Change method name ai.timefold.solver.core.api.score.stream.quad.QuadConstraintStream ifExistsIncludingNullVars(..) to ifExistsIncludingUnassigned
  11. Change method name ai.timefold.solver.core.api.score.stream.quad.QuadConstraintStream ifNotExistsIncludingNullVars(..) to ifNotExistsIncludingUnassigned
  12. Change annotation attribute name @PlanningVariable(nullable) to @PlanningVariable(allowsUnassigned)