[wpilibj] Suppress JDK 21 this-escape warning (#6996)

This commit is contained in:
Tyler Veness
2024-08-24 06:52:04 -07:00
committed by GitHub
parent ed86f0b6fe
commit 96bd1e489f

View File

@@ -70,6 +70,7 @@ public class Alert {
* @param text Text to be displayed when the alert is active.
* @param type Alert urgency level.
*/
@SuppressWarnings("this-escape")
public Alert(String group, String text, AlertType type) {
if (!groups.containsKey(group)) {
groups.put(group, new SendableAlerts());