diff --git a/wpiunits/src/generate/main/java/Measure-interface.java.jinja b/wpiunits/src/generate/main/java/Measure-interface.java.jinja index 06622b8c6ec..5595d158039 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 consistancy 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 6db6eaba55f..8265f771386 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 consistancy 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 baeef705977..a7b8e6c0eb6 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 consistancy 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 cb0f4668a10..feb7a4bcfba 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 consistancy 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 d769afc56d6..602e37eebd2 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 consistancy 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 c796721ada0..aa4b24c9591 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 consistancy 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 2362f3f6774..2b006143459 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 consistancy 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 c0cbe5bd18b..7afc03319fb 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 consistancy 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 ec639e265fa..1b87bea84b4 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 consistancy 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 7b101081e8e..f7623a9b045 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 consistancy 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 10b0decfe67..80fdadfd3c3 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 consistancy 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 e553f495fda..0e4dbc8cef8 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 consistancy 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 bbbeb8f7930..94fe60ed6f2 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 consistancy 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 bf0cff3d72c..1154332a70f 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 consistancy 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 3b85ef77898..f1d865e59f8 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 consistancy 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 2c1c138ef15..27b510d8c67 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 consistancy 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 8fc6ed96701..fa1d19e7c59 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 consistancy 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 83489d46cfd..1d2ad75e5c7 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 consistancy 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 fa776bee000..ac0c2b6012c 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 consistancy 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 6cfc1feb40d..8f53471e920 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 consistancy 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 06e0dad2c77..71099557e0d 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 consistancy 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 1ce254265b3..a0d5f9bba8a 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 consistancy 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 f09bf36a3e4..3fd591b69cf 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 consistancy 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 253e70d3315..78cc62b303c 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 consistancy 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 6c8ece51a63..84b6090c542 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 consistancy 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 04553eda437..8e61e8e6de0 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 consistancy with other WPILib classes like Rotation2d + */ @Override @Deprecated(since = "2025", forRemoval = true) @SuppressWarnings({"deprecation", "removal"})