mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Adds error-prone to check java code
This commit is contained in:
committed by
Peter Johnson
parent
a532518056
commit
6272244a73
@@ -1,6 +1,15 @@
|
||||
import org.gradle.internal.os.OperatingSystem
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'net.ltgt.errorprone'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
configurations.errorprone {
|
||||
resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.0.9'
|
||||
}
|
||||
|
||||
def generatedJNIHeaderLoc = '../build/include'
|
||||
|
||||
|
||||
@@ -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