sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 01/02: Fix javadoc typos.
Date Tue, 31 Jul 2018 09:41:55 GMT
This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit da0c99d8018df2863172c64fcac7d86861579de3
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Mon Jul 30 21:40:28 2018 +0200

    Fix javadoc typos.
---
 .../src/main/java/org/apache/sis/measure/AbstractUnit.java        | 8 +++-----
 .../src/main/java/org/apache/sis/measure/ConventionalUnit.java    | 2 +-
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/core/sis-utility/src/main/java/org/apache/sis/measure/AbstractUnit.java b/core/sis-utility/src/main/java/org/apache/sis/measure/AbstractUnit.java
index 179e868..4e4f857 100644
--- a/core/sis-utility/src/main/java/org/apache/sis/measure/AbstractUnit.java
+++ b/core/sis-utility/src/main/java/org/apache/sis/measure/AbstractUnit.java
@@ -79,8 +79,8 @@ abstract class AbstractUnit<Q extends Quantity<Q>> implements
Unit<Q>, LenientCo
      * <p>Users can override this symbol by call to {@link UnitFormat#label(Unit, String)},
      * but such overriding applies only to the target {@code UnitFormat} instance.</p>
      *
-     * <p>The value given assigned to this field is also used by {@link #getName()}
-     * for fetching a localized name from the resource bundle.</p>
+     * <p>The value assigned to this field is also used by {@link #getName()} for fetching
a localized name
+     * from the resource bundle.</p>
      *
      * @see #getSymbol()
      * @see SystemUnit#alternate(String)
@@ -105,9 +105,7 @@ abstract class AbstractUnit<Q extends Quantity<Q>> implements
Unit<Q>, LenientCo
      * The EPSG code, or 0 if this unit has no EPSG code.
      *
      * <p>This information is not serialized because {@link #readResolve()} will replace
the deserialized instance
-     * by a hard-coded instance with appropriate value, if possible. Note that EPSG codes
are not included in the
-     * {@code sis-uom} module (a module containing a subset of {@code sis-utility} module),
so we need to ignore
-     * this field at serialization time if we want compatible serialization forms.</p>
+     * by a hard-coded instance with appropriate value, if possible.</p>
      *
      * @see #equals(short, short)
      */
diff --git a/core/sis-utility/src/main/java/org/apache/sis/measure/ConventionalUnit.java b/core/sis-utility/src/main/java/org/apache/sis/measure/ConventionalUnit.java
index bf58756..9949cd7 100644
--- a/core/sis-utility/src/main/java/org/apache/sis/measure/ConventionalUnit.java
+++ b/core/sis-utility/src/main/java/org/apache/sis/measure/ConventionalUnit.java
@@ -171,7 +171,7 @@ final class ConventionalUnit<Q extends Quantity<Q>> extends
AbstractUnit<Q> {
     }
 
     /**
-     * Returns the positive power after the given unit symbol, or in case of doubt.
+     * Returns the positive power after the given unit symbol, or 0 in case of doubt.
      * For example this method returns 1 for “m” and 2 for “m²”. We parse the unit
symbol instead
      * than the {@link SystemUnit#dimension} because we can not extract easily the power
from the
      * product of dimensions (e.g. what is the M⋅L²∕T³ power?) Furthermore the power
will be used


Mime
View raw message