Skip to content

Use StableValue as implementation for CachedSupplier #13

Description

@Jannyboy11

In the util package, there lives CachedSupplier utility class.
This one is better replaced by the StableValue (https://openjdk.org/jeps/8312611) class from the JDK for better performance.

For compatibility, GuiLib must release as a Multi-Release jar file such that we can fall back on the old CachedSupplier implementation when running on Java versions where StableValue is not yet available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions