The documentation shows the following example:
|
return snapshot.plusOrReplace("", prettyPrintHtml(subject)); |
...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?
The documentation shows the following example:
selfie/selfie.dev/src/pages/jvm/facets.mdx
Line 149 in 9e72865
...but the signature of
plusOrReplaceispublic final Snapshot plusOrReplace(@NotNull String key, @NotNull SnapshotValue value)- it can not takeStringas 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?