From f62a055608b2b31cca548da096f27fb950cb2ef3 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Tue, 16 Jul 2024 20:20:22 -0700 Subject: [PATCH] [epilogue] Add missing docs (#6844) --- .../java/edu/wpi/first/epilogue/EpilogueConfiguration.java | 3 +++ .../main/java/edu/wpi/first/epilogue/logging/NullLogger.java | 3 +++ .../edu/wpi/first/epilogue/logging/errors/CrashOnError.java | 3 +++ .../edu/wpi/first/epilogue/logging/errors/ErrorPrinter.java | 3 +++ 4 files changed, 12 insertions(+) diff --git a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/EpilogueConfiguration.java b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/EpilogueConfiguration.java index e5b569bf0ae..e9a9813023c 100644 --- a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/EpilogueConfiguration.java +++ b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/EpilogueConfiguration.java @@ -40,4 +40,7 @@ public class EpilogueConfiguration { * string. */ public String root = "Robot"; + + /** Default constructor. */ + public EpilogueConfiguration() {} } diff --git a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/NullLogger.java b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/NullLogger.java index fb6d30474b9..e5c973bfdac 100644 --- a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/NullLogger.java +++ b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/NullLogger.java @@ -8,6 +8,9 @@ /** Null data logger implementation that logs nothing. */ public class NullLogger implements DataLogger { + /** Default constructor. */ + public NullLogger() {} + @Override public DataLogger getSubLogger(String path) { // Since a sublogger would still log nothing and has no state, we can just return the same diff --git a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/errors/CrashOnError.java b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/errors/CrashOnError.java index 63a68d0852d..716695fd904 100644 --- a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/errors/CrashOnError.java +++ b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/errors/CrashOnError.java @@ -12,6 +12,9 @@ * code. */ public class CrashOnError implements ErrorHandler { + /** Default constructor. */ + public CrashOnError() {} + @Override public void handle(Throwable exception, ClassSpecificLogger logger) { throw new RuntimeException( diff --git a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/errors/ErrorPrinter.java b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/errors/ErrorPrinter.java index 4987994f9ed..7baa6ffc09b 100644 --- a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/errors/ErrorPrinter.java +++ b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/errors/ErrorPrinter.java @@ -8,6 +8,9 @@ /** An error handler implementation that prints error information to the console. */ public class ErrorPrinter implements ErrorHandler { + /** Default constructor. */ + public ErrorPrinter() {} + @Override public void handle(Throwable exception, ClassSpecificLogger logger) { System.err.println(