sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1768751 - in /sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis: measure/UnitFormat.java util/iso/Types.java
Date Tue, 08 Nov 2016 17:48:06 GMT
Author: desruisseaux
Date: Tue Nov  8 17:48:06 2016
New Revision: 1768751

URL: http://svn.apache.org/viewvc?rev=1768751&view=rev
Log:
Minor comment formatting.

Modified:
    sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/measure/UnitFormat.java
    sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/iso/Types.java

Modified: sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/measure/UnitFormat.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/measure/UnitFormat.java?rev=1768751&r1=1768750&r2=1768751&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/measure/UnitFormat.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/measure/UnitFormat.java
[UTF-8] Tue Nov  8 17:48:06 2016
@@ -296,7 +296,7 @@ public class UnitFormat extends Format i
     /**
      * Creates a new format for the given locale.
      *
-     * @param   locale  the locale to use for parsing and formatting units.
+     * @param  locale  the locale to use for parsing and formatting units.
      */
     public UnitFormat(final Locale locale) {
         ArgumentChecks.ensureNonNull("locale", locale);

Modified: sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/iso/Types.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/iso/Types.java?rev=1768751&r1=1768750&r2=1768751&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/iso/Types.java [UTF-8]
(original)
+++ sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/iso/Types.java [UTF-8]
Tue Nov  8 17:48:06 2016
@@ -136,8 +136,8 @@ public final class Types extends Static
      * annotations are not inherited). If no annotation is found, then this method does not
fallback
      * on the Java name since, as the name implies, this method is about standard names.
      *
-     * @param  type The GeoAPI interface or code list from which to get the ISO name, or
{@code null}.
-     * @return The ISO name for the given type, or {@code null} if none or if the given type
is {@code null}.
+     * @param  type  the GeoAPI interface or code list from which to get the ISO name, or
{@code null}.
+     * @return the ISO name for the given type, or {@code null} if none or if the given type
is {@code null}.
      *
      * @see #forStandardName(String)
      */
@@ -707,7 +707,7 @@ public final class Types extends Static
         boolean isSorted = false;
         if (properties instanceof SortedMap<?,?>) {
             final SortedMap<String,?> sorted = (SortedMap<String,?>) properties;
-            if (sorted.comparator() == null) { // We want natural ordering.
+            if (sorted.comparator() == null) {                                      // We
want natural ordering.
                 properties = sorted.tailMap(prefix);
                 isSorted = true;
             }
@@ -723,10 +723,10 @@ public final class Types extends Static
         for (final Map.Entry<String,?> entry : properties.entrySet()) {
             final String key = entry.getKey();
             if (key == null) {
-                continue; // Tolerance for Map that accept null keys.
+                continue;                       // Tolerance for Map that accept null keys.
             }
             if (!key.startsWith(prefix)) {
-                if (isSorted) break; // If the map is sorted, there is no need to check next
entries.
+                if (isSorted) break;            // If the map is sorted, there is no need
to check next entries.
                 continue;
             }
             final Locale locale;



Mime
View raw message