diff --git a/wpiunits/src/generate/main/java/Measure-interface.java.jinja b/wpiunits/src/generate/main/java/Measure-interface.java.jinja index b17ab8f1664..80ffe0a7e09 100644 --- a/wpiunits/src/generate/main/java/Measure-interface.java.jinja +++ b/wpiunits/src/generate/main/java/Measure-interface.java.jinja @@ -43,6 +43,11 @@ public interface {{ helpers['type_decl'](name) }} extends Measure<{{ helpers['mt return ({{ helpers['type_usage'](name) }}) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Acceleration.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Acceleration.java index 97da4cdeed5..ac4f6860976 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Acceleration.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Acceleration.java @@ -43,6 +43,11 @@ default Acceleration unaryMinus() { return (Acceleration) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Angle.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Angle.java index 061e17ffcff..23b99572417 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Angle.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Angle.java @@ -43,6 +43,11 @@ default Angle unaryMinus() { return (Angle) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/AngularAcceleration.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/AngularAcceleration.java index 63d77a4e3d3..d5cac08a792 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/AngularAcceleration.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/AngularAcceleration.java @@ -43,6 +43,11 @@ default AngularAcceleration unaryMinus() { return (AngularAcceleration) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/AngularMomentum.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/AngularMomentum.java index 46d345b9749..8d7bc6387e5 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/AngularMomentum.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/AngularMomentum.java @@ -43,6 +43,11 @@ default AngularMomentum unaryMinus() { return (AngularMomentum) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/AngularVelocity.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/AngularVelocity.java index cd9e517cf48..9347eafa8bc 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/AngularVelocity.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/AngularVelocity.java @@ -43,6 +43,11 @@ default AngularVelocity unaryMinus() { return (AngularVelocity) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Current.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Current.java index c90149b70c7..84ae1e04db1 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Current.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Current.java @@ -43,6 +43,11 @@ default Current unaryMinus() { return (Current) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Dimensionless.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Dimensionless.java index 53c61f65ea6..27e01a77a11 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Dimensionless.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Dimensionless.java @@ -43,6 +43,11 @@ default Dimensionless unaryMinus() { return (Dimensionless) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Distance.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Distance.java index f339d2b6e76..7bfc52f736d 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Distance.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Distance.java @@ -43,6 +43,11 @@ default Distance unaryMinus() { return (Distance) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Energy.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Energy.java index aa0d601b508..ed125befe33 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Energy.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Energy.java @@ -43,6 +43,11 @@ default Energy unaryMinus() { return (Energy) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Force.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Force.java index d8f1f7a208f..fa69b143f1a 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Force.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Force.java @@ -43,6 +43,11 @@ default Force unaryMinus() { return (Force) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Frequency.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Frequency.java index 5b01153cc98..1b69009db5a 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Frequency.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Frequency.java @@ -43,6 +43,11 @@ default Frequency unaryMinus() { return (Frequency) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/LinearAcceleration.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/LinearAcceleration.java index 5224e53274c..dc8f6d26b8a 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/LinearAcceleration.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/LinearAcceleration.java @@ -43,6 +43,11 @@ default LinearAcceleration unaryMinus() { return (LinearAcceleration) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/LinearMomentum.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/LinearMomentum.java index b8e07895208..2a7ce3341d1 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/LinearMomentum.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/LinearMomentum.java @@ -43,6 +43,11 @@ default LinearMomentum unaryMinus() { return (LinearMomentum) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/LinearVelocity.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/LinearVelocity.java index 9c4570f9c3d..e45aa5474ad 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/LinearVelocity.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/LinearVelocity.java @@ -43,6 +43,11 @@ default LinearVelocity unaryMinus() { return (LinearVelocity) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Mass.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Mass.java index d3ca9bf88fc..81a0f1507f1 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Mass.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Mass.java @@ -43,6 +43,11 @@ default Mass unaryMinus() { return (Mass) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/MomentOfInertia.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/MomentOfInertia.java index 3ca532e64d2..b831bcffc6b 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/MomentOfInertia.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/MomentOfInertia.java @@ -43,6 +43,11 @@ default MomentOfInertia unaryMinus() { return (MomentOfInertia) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Mult.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Mult.java index 128207520bd..3b7dcf840c9 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Mult.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Mult.java @@ -43,6 +43,11 @@ default Mult unaryMinus() { return (Mult) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Per.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Per.java index e66601c8bf5..e46fb50f89b 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Per.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Per.java @@ -43,6 +43,11 @@ default Per unaryMinus() { return (Per) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Power.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Power.java index 49a94a77d09..a666094881b 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Power.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Power.java @@ -43,6 +43,11 @@ default Power unaryMinus() { return (Power) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Resistance.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Resistance.java index 09af163fc0d..28932b2c70b 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Resistance.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Resistance.java @@ -43,6 +43,11 @@ default Resistance unaryMinus() { return (Resistance) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Temperature.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Temperature.java index fb9a58fe24c..b10efd810d7 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Temperature.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Temperature.java @@ -43,6 +43,11 @@ default Temperature unaryMinus() { return (Temperature) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Time.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Time.java index bca1ac28771..dccfda609d9 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Time.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Time.java @@ -43,6 +43,11 @@ default Time unaryMinus() { return (Time) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Torque.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Torque.java index 71dfce1b967..e53dbaad941 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Torque.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Torque.java @@ -43,6 +43,11 @@ default Torque unaryMinus() { return (Torque) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Velocity.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Velocity.java index ec0993f892f..056924849e4 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Velocity.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Velocity.java @@ -43,6 +43,11 @@ default Velocity unaryMinus() { return (Velocity) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"}) diff --git a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Voltage.java b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Voltage.java index 49602db7e0a..98ceecedaa0 100644 --- a/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Voltage.java +++ b/wpiunits/src/generated/main/java/edu/wpi/first/units/measure/Voltage.java @@ -43,6 +43,11 @@ default Voltage unaryMinus() { return (Voltage) unit().ofBaseUnits(0 - baseUnitMagnitude()); } + /** + * {@inheritDoc} + * + * @deprecated use unaryMinus() instead. This was renamed for consistency with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"})