`plusOrReplace` example not working in Java
Open
bug
docs
jvm
- Dominant language
- Kotlin
- Stars
- 101
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
The documentation shows the following example:
https://github.com/diffplug/selfie/blob/9e72865b58f07a2cb1d576110165ba3bbb4e1501/selfie.dev/src/pages/jvm/facets.mdx?plain=1#L149
...but the signature of `plusOrReplace` is `public final Snapshot plusOrReplace(@NotNull String key, @NotNull SnapshotValue value)` - it can not take `String` as the second argument (like the example shows)
The codebase contains a `SnapshotValue.of(...)` call, but it does not seem accessible from Java?
I guess one could call `new SnapshotValueString(...)` directly?
Contributor guide
Assessment
This issue has not been assessed yet.