Make NetworkTable constructor private/package-private. (#253)

Users should be using either NetworkTableInstance.getTable() or
NetworkTable.getSubTable().
This commit is contained in:
Peter Johnson
2017-11-12 21:57:28 -08:00
committed by GitHub
parent 51165ba0aa
commit 86d4899a54
4 changed files with 20 additions and 7 deletions

View File

@@ -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;