From acd2b929f482144446076947165992fdd998b892 Mon Sep 17 00:00:00 2001 From: Daniel Chen Date: Sat, 7 Dec 2024 23:08:38 -0500 Subject: [PATCH] More java format updates --- .../first/epilogue/logging/LogBackedSendableBuilder.java | 3 ++- .../java/edu/wpi/first/epilogue/logging/NestedBackend.java | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/LogBackedSendableBuilder.java b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/LogBackedSendableBuilder.java index cf018d9a9dc..d4cdcf99819 100644 --- a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/LogBackedSendableBuilder.java +++ b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/LogBackedSendableBuilder.java @@ -24,7 +24,8 @@ /** A sendable builder implementation that sends data to a {@link EpilogueBackend}. */ @SuppressWarnings("PMD.CouplingBetweenObjects") // most methods simply delegate to the backend public class LogBackedSendableBuilder implements NTSendableBuilder { - private static final NetworkTable m_rootTable = NetworkTableInstance.getDefault().getTable("Robot"); + private static final NetworkTable m_rootTable = + NetworkTableInstance.getDefault().getTable("Robot"); private final EpilogueBackend m_backend; private final Collection m_updates = new ArrayList<>(); private final NetworkTable m_networkTable; diff --git a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/NestedBackend.java b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/NestedBackend.java index 4da13653470..590dc7354dd 100644 --- a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/NestedBackend.java +++ b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/NestedBackend.java @@ -37,7 +37,11 @@ public NestedBackend(String prefix, EpilogueBackend impl) { public EpilogueBackend getNested(String path) { return m_nestedBackends.computeIfAbsent(path, k -> new NestedBackend(k, this)); } - + + /** + * Gets the prefix of this nested backend. + * @return the prefix of this nested backend + */ public String getPrefix() { return m_prefix; }