Skip to content

Commit

Permalink
API Annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Oct 4, 2024
1 parent d4b0083 commit 51ddb09
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/tech/units/indriya/AbstractUnit.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
package tech.units.indriya;

import static javax.measure.Quantity.Scale.ABSOLUTE;
import static org.apiguardian.api.API.Status.EXPERIMENTAL;

import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
Expand All @@ -48,6 +49,8 @@
import javax.measure.format.MeasurementParseException;
import javax.measure.quantity.Dimensionless;

import org.apiguardian.api.API;

import tech.units.indriya.format.LocalUnitFormat;
import tech.units.indriya.format.SimpleUnitFormat;
import tech.units.indriya.function.AbstractConverter;
Expand Down Expand Up @@ -87,7 +90,7 @@
* International System of Units</a>
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
* @author <a href="mailto:werner@units.tech">Werner Keil</a>
* @version 4.0, October 3, 2024
* @version 4.1, October 4, 2024
* @since 1.0
*/
public abstract class AbstractUnit<Q extends Quantity<Q>>
Expand Down Expand Up @@ -337,6 +340,7 @@ public final UnitConverter getConverterToAny(Unit<?> that) throws Incommensurabl
*
* @see #getConverterToAny(Unit)
*/
@API(status=EXPERIMENTAL)
public final UnitConverter getConverterTo(Unit<Q> that, Scale scale) throws UnconvertibleException {
this.scale = scale;
return getConverterTo(that);
Expand All @@ -361,7 +365,8 @@ public final UnitConverter getConverterTo(Unit<Q> that, Scale scale) throws Unco
*
* @see #getConverterTo(Unit)
* @see #isCompatible(Unit)
*/
*/
@API(status=EXPERIMENTAL)
@SuppressWarnings("rawtypes")
public final UnitConverter getConverterToAny(Unit<?> that, Scale scale) throws IncommensurableException, UnconvertibleException {
if (!isCompatible(that))
Expand Down

0 comments on commit 51ddb09

Please sign in to comment.