[wpiunits] Fix deprecation javadoc for units negate (#7436)

deprecated javadoc tags aren't inherited
This commit is contained in:
sciencewhiz
2024-11-27 23:03:23 -08:00
committed by GitHub
parent 59dbfc9c2d
commit 49e3e4a0be
26 changed files with 130 additions and 0 deletions

View File

@@ -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"})