mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Make NetworkTable constructor private/package-private. (#253)
Users should be using either NetworkTableInstance.getTable() or NetworkTable.getSubTable().
This commit is contained in:
@@ -28,7 +28,10 @@ public final class NetworkTable {
|
||||
private final String pathWithSep;
|
||||
private final NetworkTableInstance inst;
|
||||
|
||||
public NetworkTable(NetworkTableInstance inst, String path) {
|
||||
/**
|
||||
* Constructor. Use NetworkTableInstance.getTable() or getSubTable() instead.
|
||||
*/
|
||||
NetworkTable(NetworkTableInstance inst, String path) {
|
||||
this.path = path;
|
||||
this.pathWithSep = path + PATH_SEPARATOR;
|
||||
this.inst = inst;
|
||||
|
||||
Reference in New Issue
Block a user