Cache frequent Enum#values() calls (#86)

This commit is contained in:
Alexdoru authored and GitHub committed 2026-03-04 16:15:04 +01:00
1 parent 84d462d8d5
commit a48f59e0ed
64 files changed
+202 -121

No files matched your search

@@ -54,9 +54,9 @@ public class ControlClimateBar extends Control implements ITooltip {
}
if (isHumidity) {
tooltip.add(EnumHumidity.values()[type].name);
tooltip.add(EnumHumidity.VALUES[type].name);
} else {
tooltip.add(EnumTemperature.values()[type + 1].name);
tooltip.add(EnumTemperature.VALUES[type + 1].name);
}
}