mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Add utility class tests (#871)
Checks for classes that only have static methods.
This commit is contained in:
committed by
Peter Johnson
parent
863cfde394
commit
2e5fece594
@@ -45,6 +45,10 @@ public class LiveWindow {
|
||||
private static boolean liveWindowEnabled = false;
|
||||
private static boolean telemetryEnabled = true;
|
||||
|
||||
private LiveWindow() {
|
||||
throw new UnsupportedOperationException("This is a utility class!");
|
||||
}
|
||||
|
||||
public static synchronized boolean isEnabled() {
|
||||
return liveWindowEnabled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user