diffplug / diffplug/selfie

`plusOrReplace` example not working in Java

Open
#547 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.