Closed srimanachanta closed 1 year ago
https://github.com/wpilibsuite/allwpilib/blob/1e7fcd563718b9e2f278e991e710b5e7431a2e8e/ntcore/src/main/java/edu/wpi/first/networktables/NetworkTableType.java#L120
This method takes an object and returns the type as a String. Shouldn't it be checking if it is an Integer and not a Long? This method is only being used by SmartDashboard widgets
String
Integer
Long
This is correct; the “int” network tables type supports 64-bit integers, which is the Long type in Java.
Ok got it
https://github.com/wpilibsuite/allwpilib/blob/1e7fcd563718b9e2f278e991e710b5e7431a2e8e/ntcore/src/main/java/edu/wpi/first/networktables/NetworkTableType.java#L120
This method takes an object and returns the type as a
String
. Shouldn't it be checking if it is anInteger
and not aLong
? This method is only being used by SmartDashboard widgets