`plusOrReplace` example not working in Java
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 50/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- documentation
Research direction
Open selfie.dev/src/pages/jvm/facets.mdx at the linked example and compare its plusOrReplace call with the documented Java signature. Check the mentioned SnapshotValue.of(...) and SnapshotValueString options for Java accessibility. Done means the documentation example uses a valid Java-compatible value and matches the public API.
Written by the indexing model from the issue text.
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?
- Dominant language
- Kotlin
- Stars
- 101
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from diffplug/selfie
-
Selfie JVM Snapshot Garbage Collection is overly zealous when using multiple test suites in gradle Openbug jvm
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
enhancement jvm
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
bug jvm
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
bug jvm py
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
bug jvm
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
index-request triaged
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Anthonyy232/Paperize#614 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
🌑 nextgen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
CCBlueX/LiquidBounce#9214 · 1 comment ·