Skip to content

Commit

Permalink
Naming scheme changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel1464 committed Dec 8, 2024
1 parent 2f6f062 commit 1f93c6a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
/** 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 rootTable = NetworkTableInstance.getDefault().getTable("Robot");
private static final NetworkTable m_rootTable = NetworkTableInstance.getDefault().getTable("Robot");
private final EpilogueBackend m_backend;
private final Collection<Runnable> m_updates = new ArrayList<>();
private final NetworkTable networkTable;
private final NetworkTable m_networkTable;

/**
* Creates a new sendable builder that delegates writes to an underlying backend.
Expand All @@ -37,9 +37,9 @@ public class LogBackedSendableBuilder implements NTSendableBuilder {
public LogBackedSendableBuilder(EpilogueBackend backend) {
this.m_backend = backend;
if (backend instanceof NestedBackend nb) {
networkTable = rootTable.getSubTable(nb.getPrefix());
m_networkTable = m_rootTable.getSubTable(nb.getPrefix());
} else {
networkTable = rootTable;
m_networkTable = m_rootTable;
}
}

Expand Down Expand Up @@ -200,7 +200,7 @@ public Topic getTopic(String key) {

@Override
public NetworkTable getTable() {
return networkTable;
return m_networkTable;
}

@Override
Expand Down

0 comments on commit 1f93c6a

Please sign in to comment.