[ntcore] Change Java event mask to EnumSet (#4564)

Also convert NetworkTableInstance.getNetworkMode() to return EnumSet.
This commit is contained in:
Peter Johnson
2022-11-04 20:25:37 -07:00
committed by GitHub
parent fa44a07938
commit 5005e2ca04
12 changed files with 216 additions and 115 deletions

View File

@@ -54,7 +54,7 @@ class PreferencesTest {
m_inst.startServer(filepath.toString(), "", 0, 0);
try {
int count = 0;
while ((m_inst.getNetworkMode() & NetworkTableInstance.kNetModeStarting) != 0) {
while (m_inst.getNetworkMode().contains(NetworkTableInstance.NetworkMode.kStarting)) {
Thread.sleep(100);
count++;
if (count > 30) {