Skip to content

chore: small refactors#2368

Draft
triceo wants to merge 3 commits into
TimefoldAI:mainfrom
triceo:mnr2
Draft

chore: small refactors#2368
triceo wants to merge 3 commits into
TimefoldAI:mainfrom
triceo:mnr2

Conversation

@triceo

@triceo triceo commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Required for the enterprise counterpart.

Copilot AI review requested due to automatic review settings June 14, 2026 11:54
@triceo triceo marked this pull request as draft June 14, 2026 11:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR makes small internal refactors in the core implementation code, primarily tightening constructors on an internal utility and modernizing list access using Java 21 APIs (aligning with the “enterprise counterpart” requirement mentioned in the PR description).

Changes:

  • Narrowed DynamicIntArray’s no-arg constructor visibility and removed a redundant constructor overload.
  • Replaced list.get(0) with list.getFirst() in DefaultVariableReferenceGraph for clearer intent on sequenced lists.

Reviewed changes

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

File Description
core/src/main/java/ai/timefold/solver/core/impl/util/DynamicIntArray.java Reduces public constructor surface area and performs minor Javadoc cleanup.
core/src/main/java/ai/timefold/solver/core/impl/domain/variable/declarative/DefaultVariableReferenceGraph.java Uses Java 21 List#getFirst() for clearer “first element” access semantics.

@sonarqubecloud

Copy link
Copy Markdown

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