Skip to content

Conversation

@triceo
Copy link
Collaborator

@triceo triceo commented Jan 29, 2026

This way, it is consistent with what java.util.List does.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request renames the assignValueAndInsert method to assignValueAndAdd in the MoveDirector API to align with Java's java.util.List naming conventions. This is part of the preview API for the Neighborhoods feature.

Changes:

  • Renamed assignValueAndInsert() to assignValueAndAdd() across the API and implementation
  • Updated javadoc to explicitly reference List#add(int, Object) and List#set(int, Object) for clarity
  • Improved documentation wording, changing "later values" to "subsequent values"

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
core/src/main/java/ai/timefold/solver/core/preview/api/move/builtin/ListAssignMove.java Updated method call from assignValueAndInsert to assignValueAndAdd
core/src/main/java/ai/timefold/solver/core/preview/api/move/MutableSolutionView.java Renamed method signature, updated deprecated method, added List import, and improved javadoc references
core/src/main/java/ai/timefold/solver/core/impl/move/MoveDirector.java Renamed method implementation to match new API signature

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
66.7% Coverage on New Code (required ≥ 70%)

See analysis details on SonarQube Cloud

@triceo triceo merged commit 2d730ca into TimefoldAI:main Jan 29, 2026
39 of 40 checks passed
@triceo triceo deleted the naming branch January 29, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants