Skip to content

Commit a06f3c4

Browse files
Say in the StateSet Javadoc that an object may be in no state of a set
Also close the {@code} block of the class example. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent cb1a49d commit a06f3c4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • liquidjava-api/src/main/java/liquidjava/specification

‎liquidjava-api/src/main/java/liquidjava/specification/StateSet.java‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
/**
1010
* Annotation to create a set of disjoint states in which class objects can be.
1111
* <p>
12-
* An object will always be in exactly one state from each state set at any given time,
13-
* and cannot be in more than one state from the same state set (e.g., {@code open} and {@code closed} simultaneously).
14-
* To allow an object to be in multiple states at once, they must be from different state sets.
12+
* An object cannot be in more than one state from the same state set at a time (e.g., {@code open} and
13+
* {@code closed} simultaneously). To allow an object to be in multiple states at once, they must be from different
14+
* state sets. An object may also be in none of the states of a set, e.g. after
15+
* {@code @StateRefinement(to = "!open(this) && !closed(this)")}.
1516
* <p>
1617
* <strong>Example:</strong>
1718
* <pre>
@@ -21,6 +22,7 @@
2122
* public class File {
2223
* // ...
2324
* }
25+
* }
2426
* </pre>
2527
*
2628
* @see StateRefinement

0 commit comments

Comments
 (0)