Skip to content

Commit dfe0371

Browse files
fix: call out filtered first-element semantics
1 parent 568f488 commit dfe0371

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

skills/java-streams/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ compatibility.
2222

2323
Before finalizing touched stream flow, run the scan and apply the replacement rules in
2424
[hard-stops.md](references/hard-stops.md).
25+
Filtered-list first-element access has first-match semantics; use `findFirst()` unless all matches
26+
are equivalent.
2527

2628
## Core Workflow
2729

0 commit comments

Comments
 (0)