refactor: remove remaining deprecation from public API#1024
Merged
triceo merged 3 commits intoTimefoldAI:developmentfrom Feb 17, 2026
Merged
refactor: remove remaining deprecation from public API#1024triceo merged 3 commits intoTimefoldAI:developmentfrom
triceo merged 3 commits intoTimefoldAI:developmentfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR removes all remaining deprecated API usage from the Timefold solver quickstart examples, aligning with deprecation removal in the core solver library (as referenced in the linked PRs). The changes update import paths and annotation attributes to use the current non-deprecated API equivalents.
Changes:
- Updated
PlanningIdimport from deprecatedai.timefold.solver.core.api.domain.lookuppackage toai.timefold.solver.core.api.domain.entity - Changed
@PlanningVariableannotation from deprecatedstrengthComparatorClassattribute tocomparatorClass - Removed unused deprecated imports (
ShadowVariablesInconsistentand unusedLocalDate)
Reviewed changes
Copilot reviewed 50 out of 50 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| kotlin/school-timetabling/.../Timeslot.kt | Updated PlanningId import path |
| kotlin/school-timetabling/.../Room.kt | Updated PlanningId import path |
| kotlin/school-timetabling/.../Lesson.kt | Updated PlanningId import path |
| java/vehicle-routing/.../Visit.java | Updated PlanningId import path and removed ShadowVariablesInconsistent import |
| java/vehicle-routing/.../Vehicle.java | Updated PlanningId import path |
| java/tournament-scheduling/.../TeamAssignment.java | Updated PlanningId import path |
| java/tournament-scheduling/.../Team.java | Updated PlanningId import path |
| java/task-assigning/.../Task.java | Updated PlanningId import path and removed ShadowVariablesInconsistent import |
| java/task-assigning/.../Employee.java | Updated PlanningId import path |
| java/spring-boot-integration/.../Timeslot.java | Updated PlanningId import path |
| java/spring-boot-integration/.../Room.java | Updated PlanningId import path |
| java/spring-boot-integration/.../Lesson.java | Updated PlanningId import path |
| java/sports-league-scheduling/.../Round.java | Updated PlanningId import path |
| java/sports-league-scheduling/.../Match.java | Updated PlanningId import path |
| java/school-timetabling/.../Timeslot.java | Updated PlanningId import path |
| java/school-timetabling/.../Room.java | Updated PlanningId import path |
| java/school-timetabling/.../Lesson.java | Updated PlanningId import path |
| java/project-job-scheduling/.../ExecutionMode.java | Updated PlanningId import path |
| java/project-job-scheduling/.../Allocation.java | Updated PlanningId import path, reorganized imports, changed strengthComparatorClass to comparatorClass |
| java/order-picking/.../Trolley.java | Updated PlanningId import path |
| java/order-picking/.../PickTask.java | Updated PlanningId import path |
| java/meeting-scheduling/.../TimeGrain.java | Updated PlanningId import path |
| java/meeting-scheduling/.../Room.java | Updated PlanningId import path |
| java/meeting-scheduling/.../MeetingAssignment.java | Updated PlanningId import path |
| java/meeting-scheduling/.../Attendance.java | Updated PlanningId import path |
| java/maintenance-scheduling/.../WorkCalendar.java | Updated PlanningId import path |
| java/maintenance-scheduling/.../Job.java | Updated PlanningId import path |
| java/maintenance-scheduling/.../Crew.java | Updated PlanningId import path |
| java/hello-world/.../Timeslot.java | Updated PlanningId import path |
| java/hello-world/.../Room.java | Updated PlanningId import path |
| java/hello-world/.../Lesson.java | Updated PlanningId import path |
| java/food-packaging/.../Product.java | Updated PlanningId import path |
| java/food-packaging/.../Operator.java | Updated PlanningId import path |
| java/food-packaging/.../Line.java | Updated PlanningId import path |
| java/food-packaging/.../Job.java | Updated PlanningId import path, removed ShadowVariablesInconsistent import, removed unused LocalDate import |
| java/flight-crew-scheduling/.../FlightAssignment.java | Updated PlanningId import path |
| java/flight-crew-scheduling/.../Flight.java | Updated PlanningId import path |
| java/flight-crew-scheduling/.../Employee.java | Updated PlanningId import path |
| java/flight-crew-scheduling/.../Airport.java | Updated PlanningId import path |
| java/facility-location/.../Facility.java | Updated PlanningId import path |
| java/facility-location/.../Consumer.java | Updated PlanningId import path |
| java/employee-scheduling/.../Shift.java | Updated PlanningId import path |
| java/employee-scheduling/.../Employee.java | Updated PlanningId import path |
| java/conference-scheduling/.../Timeslot.java | Updated PlanningId import path |
| java/conference-scheduling/.../Talk.java | Updated PlanningId import path |
| java/conference-scheduling/.../Room.java | Updated PlanningId import path |
| java/bed-allocation/.../Stay.java | Updated PlanningId import path |
| java/bed-allocation/.../Room.java | Updated PlanningId import path |
| java/bed-allocation/.../Department.java | Updated PlanningId import path |
| java/bed-allocation/.../Bed.java | Updated PlanningId import path |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Christopher-Chianelli
approved these changes
Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Counterpart to:
TimefoldAI/timefold-solver#2124
https://github.com/TimefoldAI/timefold-solver-enterprise/pull/452