GuiLib icon indicating copy to clipboard operation
GuiLib copied to clipboard

Use StableValue as implementation for CachedSupplier

Open Jannyboy11 opened this issue 4 months ago • 0 comments

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.

Jannyboy11 avatar Oct 11 '24 18:10 Jannyboy11