Skip to content

Commit 63498bb

Browse files
triceoCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent b86b192 commit 63498bb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/src/modules/ROOT/pages/using-timefold-solver/modeling-planning-problems.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,11 @@ A `@PlanningId` property must be:
253253
* Unique for that specific class
254254
** It does not need to be unique across different problem fact classes
255255
(unless in that rare case that those classes are mixed in the same value range or planning entity collection).
256-
* Of a type that implements https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Comparable.html[`Comparable`].
256+
* Of a type that implements https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Comparable.html[`Comparable`],
257+
or of a primitive type whose boxed type implements `Comparable` (for example `long`, which boxes to `Long`).
257258
** The type must also provide a stable `equals()`/`hashCode()` contract.
258-
** It's recommended to use immutable types such as `Long`, `String` or `UUID`.
259+
** It's recommended to use immutable identifier types such as `Long`, `String` or `UUID`
260+
and primitive alternatives such as `long` where appropriate.
259261
* Never `null` by the time `Solver.solve()` is called.
260262
261263

0 commit comments

Comments
 (0)