mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +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:
@@ -11,6 +11,7 @@ import java.lang.reflect.Field;
|
||||
* your `close` method, that will use reflection to find all `AutoCloseable` instance members and
|
||||
* close them.
|
||||
*/
|
||||
@SuppressWarnings("PMD.ImplicitFunctionalInterface")
|
||||
public interface ReflectionCleanup extends AutoCloseable {
|
||||
/**
|
||||
* Default implementation that uses reflection to find all AutoCloseable fields not marked
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
package edu.wpi.first.util.sendable;
|
||||
|
||||
/** The base interface for objects that can be sent over the network. */
|
||||
@SuppressWarnings("PMD.ImplicitFunctionalInterface")
|
||||
public interface Sendable {
|
||||
/**
|
||||
* Initializes this {@link Sendable} object.
|
||||
|
||||
@@ -435,7 +435,6 @@ public final class StructGenerator {
|
||||
}
|
||||
|
||||
int size = 0;
|
||||
boolean failed = false;
|
||||
|
||||
for (final E constant : enumVariants) {
|
||||
final String name = constant.name();
|
||||
@@ -452,6 +451,8 @@ public final class StructGenerator {
|
||||
.filter(f -> !f.isEnumConstant() && !Modifier.isStatic(f.getModifiers()))
|
||||
.toList();
|
||||
|
||||
boolean failed = false;
|
||||
|
||||
for (final Field field : enumFields) {
|
||||
final Class<?> type = field.getType();
|
||||
final String name = field.getName();
|
||||
|
||||
Reference in New Issue
Block a user