diff options
Diffstat (limited to 'src/org/unitConverter/unit/AbstractUnit.java')
-rw-r--r-- | src/org/unitConverter/unit/AbstractUnit.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/unitConverter/unit/AbstractUnit.java b/src/org/unitConverter/unit/AbstractUnit.java index 05a6c17..6045127 100644 --- a/src/org/unitConverter/unit/AbstractUnit.java +++ b/src/org/unitConverter/unit/AbstractUnit.java @@ -23,6 +23,13 @@ import org.unitConverter.dimension.UnitDimension; /** * The default abstract implementation of the {@code Unit} interface. * + * <p> + * With the addition of {@link Unit#fromConversionFunctions}, there is no longer any reason to use {@code AbstractUnit} + * for any purpose other than making subclasses. Units should never be declared as {@code AbstractUnit}, they should be + * declared as {@code Unit}. Now that {@code Unit.fromConversionFunctions} exists, it is preferred to creating anonymous + * inner types of {@code AbstractUnit}. + * </p> + * * @author Adrien Hopkins * @since 2018-12-22 * @since v0.1.0 |