Skip to content

plusOrReplace example not working in Java #547

Description

@jaens

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocsImprovements or additions to documentationjvm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions