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:
@@ -15,19 +15,19 @@ package edu.wpi.first.hal;
|
||||
public class AnalogJNI extends JNIWrapper {
|
||||
/**
|
||||
* <i>native declaration : AthenaJava\target\native\include\HAL\Analog.h:58</i><br>
|
||||
* enum values
|
||||
* enum values.
|
||||
*/
|
||||
public interface AnalogTriggerType {
|
||||
/** <i>native declaration : AthenaJava\target\native\include\HAL\Analog.h:54</i> */
|
||||
/** <i>native declaration : AthenaJava\target\native\include\HAL\Analog.h:54</i>. */
|
||||
int kInWindow = 0;
|
||||
|
||||
/** <i>native declaration : AthenaJava\target\native\include\HAL\Analog.h:55</i> */
|
||||
/** <i>native declaration : AthenaJava\target\native\include\HAL\Analog.h:55</i>. */
|
||||
int kState = 1;
|
||||
|
||||
/** <i>native declaration : AthenaJava\target\native\include\HAL\Analog.h:56</i> */
|
||||
/** <i>native declaration : AthenaJava\target\native\include\HAL\Analog.h:56</i>. */
|
||||
int kRisingPulse = 2;
|
||||
|
||||
/** <i>native declaration : AthenaJava\target\native\include\HAL\Analog.h:57</i> */
|
||||
/** <i>native declaration : AthenaJava\target\native\include\HAL\Analog.h:57</i>. */
|
||||
int kFallingPulse = 3;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ public final class CANAPITypes {
|
||||
kFirmwareUpdate(31);
|
||||
|
||||
/** The device type ID. */
|
||||
@SuppressWarnings("PMD.MemberName")
|
||||
@SuppressWarnings("MemberName")
|
||||
public final int id;
|
||||
|
||||
CANDeviceType(int id) {
|
||||
@@ -108,7 +108,7 @@ public final class CANAPITypes {
|
||||
kVividHosting(16);
|
||||
|
||||
/** The manufacturer ID. */
|
||||
@SuppressWarnings("PMD.MemberName")
|
||||
@SuppressWarnings("MemberName")
|
||||
public final int id;
|
||||
|
||||
CANManufacturer(int id) {
|
||||
|
||||
@@ -125,8 +125,8 @@ public class PowerDistributionFaults {
|
||||
case 21 -> Channel21BreakerFault;
|
||||
case 22 -> Channel22BreakerFault;
|
||||
case 23 -> Channel23BreakerFault;
|
||||
default -> throw new IndexOutOfBoundsException(
|
||||
"Power distribution fault channel out of bounds!");
|
||||
default ->
|
||||
throw new IndexOutOfBoundsException("Power distribution fault channel out of bounds!");
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -134,8 +134,8 @@ public class PowerDistributionStickyFaults {
|
||||
case 21 -> Channel21BreakerFault;
|
||||
case 22 -> Channel22BreakerFault;
|
||||
case 23 -> Channel23BreakerFault;
|
||||
default -> throw new IndexOutOfBoundsException(
|
||||
"Power distribution fault channel out of bounds!");
|
||||
default ->
|
||||
throw new IndexOutOfBoundsException("Power distribution fault channel out of bounds!");
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -32,15 +32,14 @@ public final class CANExceptionFactory {
|
||||
case NIRioStatus.kRioStatusSuccess -> {
|
||||
// Everything is ok... don't throw.
|
||||
}
|
||||
case ERR_CANSessionMux_InvalidBuffer,
|
||||
NIRioStatus.kRIOStatusBufferInvalidSize -> throw new CANInvalidBufferException();
|
||||
case ERR_CANSessionMux_MessageNotFound,
|
||||
NIRioStatus.kRIOStatusOperationTimedOut -> throw new CANMessageNotFoundException();
|
||||
case ERR_CANSessionMux_NotAllowed,
|
||||
NIRioStatus.kRIOStatusFeatureNotSupported -> throw new CANMessageNotAllowedException(
|
||||
"MessageID = " + messageID);
|
||||
case ERR_CANSessionMux_NotInitialized,
|
||||
NIRioStatus.kRIOStatusResourceNotInitialized -> throw new CANNotInitializedException();
|
||||
case ERR_CANSessionMux_InvalidBuffer, NIRioStatus.kRIOStatusBufferInvalidSize ->
|
||||
throw new CANInvalidBufferException();
|
||||
case ERR_CANSessionMux_MessageNotFound, NIRioStatus.kRIOStatusOperationTimedOut ->
|
||||
throw new CANMessageNotFoundException();
|
||||
case ERR_CANSessionMux_NotAllowed, NIRioStatus.kRIOStatusFeatureNotSupported ->
|
||||
throw new CANMessageNotAllowedException("MessageID = " + messageID);
|
||||
case ERR_CANSessionMux_NotInitialized, NIRioStatus.kRIOStatusResourceNotInitialized ->
|
||||
throw new CANNotInitializedException();
|
||||
default -> throw new UncleanStatusException("Fatal status code detected: " + status);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
package edu.wpi.first.hal.simulation;
|
||||
|
||||
/** Interface for simulation buffer callbacks. */
|
||||
@FunctionalInterface
|
||||
public interface BufferCallback {
|
||||
/**
|
||||
* Simulation buffer callback function.
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
package edu.wpi.first.hal.simulation;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface ConstBufferCallback {
|
||||
void callback(String name, byte[] buffer, int count);
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ package edu.wpi.first.hal.simulation;
|
||||
|
||||
import edu.wpi.first.hal.HALValue;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface NotifyCallback {
|
||||
void callback(String name, HALValue value);
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
package edu.wpi.first.hal.simulation;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface SpiReadAutoReceiveBufferCallback {
|
||||
int callback(String name, int[] buffer, int numToRead);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user