From 5131136bf4f618252fe1dadeb349a1fea8d4d235 Mon Sep 17 00:00:00 2001 From: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com> Date: Sat, 2 Dec 2023 00:25:25 -0500 Subject: [PATCH] Discard changes to generated files --- .../first/networktables/NetworkTableEntry.java | 2 +- .../networktables/NetworkTableInstance.java | 2 +- .../first/networktables/NetworkTableValue.java | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ntcore/src/generated/main/java/edu/wpi/first/networktables/NetworkTableEntry.java b/ntcore/src/generated/main/java/edu/wpi/first/networktables/NetworkTableEntry.java index bec010bf238..69d107753a0 100644 --- a/ntcore/src/generated/main/java/edu/wpi/first/networktables/NetworkTableEntry.java +++ b/ntcore/src/generated/main/java/edu/wpi/first/networktables/NetworkTableEntry.java @@ -1009,5 +1009,5 @@ public int hashCode() { } private final Topic m_topic; - private final int m_handle; + protected int m_handle; } diff --git a/ntcore/src/generated/main/java/edu/wpi/first/networktables/NetworkTableInstance.java b/ntcore/src/generated/main/java/edu/wpi/first/networktables/NetworkTableInstance.java index d32ccce1fec..e5872ba425f 100644 --- a/ntcore/src/generated/main/java/edu/wpi/first/networktables/NetworkTableInstance.java +++ b/ntcore/src/generated/main/java/edu/wpi/first/networktables/NetworkTableInstance.java @@ -890,7 +890,7 @@ private void startThread() { } catch (Throwable throwable) { System.err.println( "Unhandled exception during listener callback: " - + throwable); + + throwable.toString()); throwable.printStackTrace(); } } diff --git a/ntcore/src/generated/main/java/edu/wpi/first/networktables/NetworkTableValue.java b/ntcore/src/generated/main/java/edu/wpi/first/networktables/NetworkTableValue.java index bf8a441069a..3045d284a50 100644 --- a/ntcore/src/generated/main/java/edu/wpi/first/networktables/NetworkTableValue.java +++ b/ntcore/src/generated/main/java/edu/wpi/first/networktables/NetworkTableValue.java @@ -336,7 +336,7 @@ public String[] getStringArray() { * @return The entry value */ public static NetworkTableValue makeBoolean(boolean value) { - return new NetworkTableValue(NetworkTableType.kBoolean, value); + return new NetworkTableValue(NetworkTableType.kBoolean, Boolean.valueOf(value)); } /** @@ -347,7 +347,7 @@ public static NetworkTableValue makeBoolean(boolean value) { * @return The entry value */ public static NetworkTableValue makeBoolean(boolean value, long time) { - return new NetworkTableValue(NetworkTableType.kBoolean, value, time); + return new NetworkTableValue(NetworkTableType.kBoolean, Boolean.valueOf(value), time); } /** @@ -357,7 +357,7 @@ public static NetworkTableValue makeBoolean(boolean value, long time) { * @return The entry value */ public static NetworkTableValue makeInteger(long value) { - return new NetworkTableValue(NetworkTableType.kInteger, value); + return new NetworkTableValue(NetworkTableType.kInteger, Long.valueOf(value)); } /** @@ -368,7 +368,7 @@ public static NetworkTableValue makeInteger(long value) { * @return The entry value */ public static NetworkTableValue makeInteger(long value, long time) { - return new NetworkTableValue(NetworkTableType.kInteger, value, time); + return new NetworkTableValue(NetworkTableType.kInteger, Long.valueOf(value), time); } /** @@ -378,7 +378,7 @@ public static NetworkTableValue makeInteger(long value, long time) { * @return The entry value */ public static NetworkTableValue makeFloat(float value) { - return new NetworkTableValue(NetworkTableType.kFloat, value); + return new NetworkTableValue(NetworkTableType.kFloat, Float.valueOf(value)); } /** @@ -389,7 +389,7 @@ public static NetworkTableValue makeFloat(float value) { * @return The entry value */ public static NetworkTableValue makeFloat(float value, long time) { - return new NetworkTableValue(NetworkTableType.kFloat, value, time); + return new NetworkTableValue(NetworkTableType.kFloat, Float.valueOf(value), time); } /** @@ -399,7 +399,7 @@ public static NetworkTableValue makeFloat(float value, long time) { * @return The entry value */ public static NetworkTableValue makeDouble(double value) { - return new NetworkTableValue(NetworkTableType.kDouble, value); + return new NetworkTableValue(NetworkTableType.kDouble, Double.valueOf(value)); } /** @@ -410,7 +410,7 @@ public static NetworkTableValue makeDouble(double value) { * @return The entry value */ public static NetworkTableValue makeDouble(double value, long time) { - return new NetworkTableValue(NetworkTableType.kDouble, value, time); + return new NetworkTableValue(NetworkTableType.kDouble, Double.valueOf(value), time); } /**