mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Adds error-prone to check java code
This commit is contained in:
committed by
Peter Johnson
parent
a532518056
commit
6272244a73
@@ -10,6 +10,7 @@ import edu.wpi.first.wpilibj.tables.TableKeyNotDefinedException;
|
||||
* @author Mitchell
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class NetworkTableKeyNotDefined extends TableKeyNotDefinedException {
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,6 +3,7 @@ package edu.wpi.first.wpilibj.networktables2.type;
|
||||
/**
|
||||
* @deprecated Use ArrayList instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public class ArrayData {
|
||||
private Object[] data = new Object[0];
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ package edu.wpi.first.wpilibj.networktables2.type;
|
||||
/**
|
||||
* @deprecated Use {@literal ArrayList<Boolean>} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public class BooleanArray extends ArrayData {
|
||||
public boolean get(int index) {
|
||||
return ((Boolean)getAsObject(index)).booleanValue();
|
||||
|
||||
@@ -3,6 +3,7 @@ package edu.wpi.first.wpilibj.networktables2.type;
|
||||
/**
|
||||
* @deprecated Use {@literal ArrayList<Double>} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public class NumberArray extends ArrayData {
|
||||
public double get(int index) {
|
||||
return ((Double)getAsObject(index)).doubleValue();
|
||||
|
||||
@@ -3,6 +3,7 @@ package edu.wpi.first.wpilibj.networktables2.type;
|
||||
/**
|
||||
* @deprecated Use {@literal ArrayList<String>} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public class StringArray extends ArrayData {
|
||||
public String get(int index) {
|
||||
return ((String)getAsObject(index));
|
||||
|
||||
Reference in New Issue
Block a user