fix: addItem method in EventSourcedBehavior docs (#30419)
This commit is contained in:
parent
8d07c055ec
commit
a71033a78e
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ public class BasicPersistentBehaviorTest {
|
|||
List<String> newItems = new ArrayList<>(items);
|
||||
newItems.add(0, data);
|
||||
// keep 5 items
|
||||
List<String> latest = newItems.subList(0, Math.min(4, newItems.size() - 1));
|
||||
List<String> latest = newItems.subList(0, Math.min(5, newItems.size()));
|
||||
return new State(latest);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue