GuiLib
GuiLib copied to clipboard
Use StableValue as implementation for CachedSupplier
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.