Skip to content

Commit

Permalink
Correct JavaDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Nov 23, 2024
1 parent 221f2a7 commit 1487697
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/java/tech/units/indriya/unit/Units.java
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,10 @@ public static Units getInstance() {
}

/**
* Adds a new unit not mapped to any specified quantity type and puts a name and symbol.
* Adds a new unit not mapped to any specified quantity type to a set with a name and symbol.
*
* @param units
* the set to add to.
* @param unit
* the unit being added.
* @param name
Expand All @@ -635,9 +637,10 @@ protected static <U extends AbstractUnit<?>> U addUnit(final Set<Unit<?>> units,
}

/**
* Adds a new unit not mapped to any specified quantity type and puts a text
* as symbol or label.
* Adds a new unit to a set using a name.
*
* @param units
* the set to add to.
* @param unit
* the unit being added.
* @param name
Expand All @@ -654,8 +657,9 @@ protected static <U extends Unit<?>> U addUnit(final Set<Unit<?>> units, U unit,
}

/**
* Adds a new unit not mapped to any specified quantity type.
* Adds a new unit to a set of units.
*
* @param units the set to add to.
* @param unit the unit being added.
* @return <code>unit</code>.
*/
Expand Down

0 comments on commit 1487697

Please sign in to comment.