Commit 8458024
committed
refactor: Use Pair for MsoMdocItem deduplication instead of string concatenation
Replaced string concatenation (namespace + elementIdentifier) used in distinctBy
with a Pair(namespace, elementIdentifier).
Using string concatenation as a uniqueness key is fragile and can theoretically
lead to collisions. A Pair provides structural equality and makes the intent of
deduplication explicit and type-safe.1 parent 8ae47cd commit 8458024
File tree
1 file changed
+1
-1
lines changed- common-feature/src/main/java/eu/europa/ec/commonfeature/ui/request/transformer
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
0 commit comments