mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
[build] Upgrade Gradle plugins (#8166)
I upgraded all plugins I could see except org.ysb33r.doxygen. 2.0 made breaking changes, and I couldn't figure out how to migrate. Most of the changes are for suppressing new linter purification rites.
This commit is contained in:
@@ -9,7 +9,6 @@ package edu.wpi.first.networktables;
|
||||
import java.nio.ByteBuffer;
|
||||
{% endif %}
|
||||
/** NetworkTables {{ TypeName }} implementation. */
|
||||
@SuppressWarnings("PMD.ArrayIsStoredDirectly")
|
||||
final class {{ TypeName }}EntryImpl extends EntryBase implements {{ TypeName }}Entry {
|
||||
/**
|
||||
* Constructor.
|
||||
|
||||
@@ -9,7 +9,6 @@ package edu.wpi.first.networktables;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
/** NetworkTables generic subscriber. */
|
||||
@SuppressWarnings("PMD.MissingOverride")
|
||||
public interface GenericSubscriber extends Subscriber, Supplier<NetworkTableValue> {
|
||||
/**
|
||||
* Get the corresponding topic.
|
||||
|
||||
@@ -9,7 +9,7 @@ package edu.wpi.first.networktables;
|
||||
import java.util.Objects;
|
||||
|
||||
/** A network table entry value. */
|
||||
@SuppressWarnings({"UnnecessaryParentheses", "PMD.MethodReturnsInternalArray"})
|
||||
@SuppressWarnings("UnnecessaryParentheses")
|
||||
public final class NetworkTableValue {
|
||||
NetworkTableValue(NetworkTableType type, Object value, long time, long serverTime) {
|
||||
m_type = type;
|
||||
@@ -176,7 +176,6 @@ public final class NetworkTableValue {
|
||||
return out;
|
||||
}
|
||||
|
||||
@SuppressWarnings("PMD.AvoidArrayLoops")
|
||||
static double[] toNativeDoubleArray(Number[] arr) {
|
||||
double[] out = new double[arr.length];
|
||||
for (int i = 0; i < arr.length; i++) {
|
||||
@@ -185,7 +184,6 @@ public final class NetworkTableValue {
|
||||
return out;
|
||||
}
|
||||
|
||||
@SuppressWarnings("PMD.AvoidArrayLoops")
|
||||
static long[] toNativeIntegerArray(Number[] arr) {
|
||||
long[] out = new long[arr.length];
|
||||
for (int i = 0; i < arr.length; i++) {
|
||||
@@ -194,7 +192,6 @@ public final class NetworkTableValue {
|
||||
return out;
|
||||
}
|
||||
|
||||
@SuppressWarnings("PMD.AvoidArrayLoops")
|
||||
static float[] toNativeFloatArray(Number[] arr) {
|
||||
float[] out = new float[arr.length];
|
||||
for (int i = 0; i < arr.length; i++) {
|
||||
|
||||
@@ -9,7 +9,6 @@ package edu.wpi.first.networktables;
|
||||
import {{ java.SupplierFunctionPackage|default('java.util.function') }}.{{ java.FunctionTypePrefix }}Supplier;
|
||||
|
||||
/** NetworkTables {{ TypeName }} subscriber. */
|
||||
@SuppressWarnings("PMD.MissingOverride")
|
||||
public interface {{ TypeName }}Subscriber extends Subscriber, {{ java.FunctionTypePrefix }}Supplier{{ java.FunctionTypeSuffix }} {
|
||||
/**
|
||||
* Get the corresponding topic.
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
package edu.wpi.first.networktables;
|
||||
|
||||
/** NetworkTables timestamped {{ TypeName }}. */
|
||||
@SuppressWarnings("PMD.ArrayIsStoredDirectly")
|
||||
public final class Timestamped{{ TypeName }} {
|
||||
/**
|
||||
* Create a timestamped value.
|
||||
|
||||
Reference in New Issue
Block a user