From 42facbb07e0f5cb551e60259d0d42717ad5e96af Mon Sep 17 00:00:00 2001 From: Austin Shalit Date: Sun, 30 Apr 2017 11:48:02 -0400 Subject: [PATCH] Make Java "struct" constructors public for testing/simulating (#195) --- .../src/edu/wpi/first/wpilibj/networktables/ConnectionInfo.java | 2 +- java/src/edu/wpi/first/wpilibj/networktables/EntryInfo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/edu/wpi/first/wpilibj/networktables/ConnectionInfo.java b/java/src/edu/wpi/first/wpilibj/networktables/ConnectionInfo.java index eb1aec940d..03ae474763 100644 --- a/java/src/edu/wpi/first/wpilibj/networktables/ConnectionInfo.java +++ b/java/src/edu/wpi/first/wpilibj/networktables/ConnectionInfo.java @@ -7,7 +7,7 @@ public class ConnectionInfo { public final long last_update; public final int protocol_version; - ConnectionInfo(String remote_id, String remote_ip, int remote_port, long last_update, int protocol_version) { + public ConnectionInfo(String remote_id, String remote_ip, int remote_port, long last_update, int protocol_version) { this.remote_id = remote_id; this.remote_ip = remote_ip; this.remote_port = remote_port; diff --git a/java/src/edu/wpi/first/wpilibj/networktables/EntryInfo.java b/java/src/edu/wpi/first/wpilibj/networktables/EntryInfo.java index b73e0e6c64..15c1980209 100644 --- a/java/src/edu/wpi/first/wpilibj/networktables/EntryInfo.java +++ b/java/src/edu/wpi/first/wpilibj/networktables/EntryInfo.java @@ -6,7 +6,7 @@ public class EntryInfo { public final int flags; public final long last_change; - EntryInfo(String name, int type, int flags, long last_change) { + public EntryInfo(String name, int type, int flags, long last_change) { this.name = name; this.type = type; this.flags = flags;