Skip to content

Commit

Permalink
Renaming parameter to conform with other addUnit methods
Browse files Browse the repository at this point in the history
  • Loading branch information
wujiang1900 committed Mar 22, 2024
1 parent 09b8b33 commit 3612f8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tech/units/indriya/unit/Units.java
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ protected static <U extends AbstractUnit<?>> U addUnit(U unit, Class<? extends Q
return unit;
}

protected static <U extends AbstractUnit<?>> U addUnit(U transformedUnit, String name, String symbol) {
return AbstractSystemOfUnits.Helper.addUnit(INSTANCE.units, transformedUnit, name, symbol);
protected static <U extends AbstractUnit<?>> U addUnit(U unit, String name, String symbol) {
return Helper.addUnit(INSTANCE.units, unit, name, symbol);
}
}

0 comments on commit 3612f8e

Please sign in to comment.