mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +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
@@ -18,6 +18,7 @@ import edu.wpi.first.wpilibj.hal.PowerJNI;
|
||||
*/
|
||||
public final class RobotController {
|
||||
private RobotController() {
|
||||
throw new UnsupportedOperationException("This is a utility class!");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -51,6 +51,10 @@ public class SmartDashboard {
|
||||
HLUsageReporting.reportSmartDashboard();
|
||||
}
|
||||
|
||||
private SmartDashboard() {
|
||||
throw new UnsupportedOperationException("This is a utility class!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Maps the specified key to the specified value in this table. The key can not be null. The value
|
||||
* can be retrieved by calling the get method with a key that is equal to the original key.
|
||||
|
||||
Reference in New Issue
Block a user