Skip to content

plusOrReplace example not working in Java #547

@jaens

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocsImprovements or additions to documentationjvm

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions