You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2017/04/10 15:26:33 UTC
svn commit: r1790858 - in /sis/branches/JDK8/core:
sis-feature/src/main/java/org/apache/sis/feature/builder/
sis-feature/src/test/java/org/apache/sis/feature/builder/
sis-utility/src/main/java/org/apache/sis/measure/
sis-utility/src/test/java/org/apach...
Author: desruisseaux
Date: Mon Apr 10 15:26:33 2017
New Revision: 1790858
URL: http://svn.apache.org/viewvc?rev=1790858&view=rev
Log:
Trivial documentation a formatting adjustments.
Modified:
sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/FeatureTypeBuilder.java
sis/branches/JDK8/core/sis-feature/src/test/java/org/apache/sis/feature/builder/FeatureTypeBuilderTest.java
sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/measure/UnitFormat.java
sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java
Modified: sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/FeatureTypeBuilder.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/FeatureTypeBuilder.java?rev=1790858&r1=1790857&r2=1790858&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/FeatureTypeBuilder.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/FeatureTypeBuilder.java [UTF-8] Mon Apr 10 15:26:33 2017
@@ -196,7 +196,7 @@ public class FeatureTypeBuilder extends
} else if (property instanceof FeatureAssociationRole) {
builder = new AssociationRoleBuilder(this, (FeatureAssociationRole) property);
} else {
- builder = null; // Do not create OperationWrapper now - see below.
+ builder = null; // Do not create OperationWrapper now - see below.
}
/*
* If the property name is one of our (Apache SIS specific) conventional names, try to reconstitute
Modified: sis/branches/JDK8/core/sis-feature/src/test/java/org/apache/sis/feature/builder/FeatureTypeBuilderTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-feature/src/test/java/org/apache/sis/feature/builder/FeatureTypeBuilderTest.java?rev=1790858&r1=1790857&r2=1790858&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-feature/src/test/java/org/apache/sis/feature/builder/FeatureTypeBuilderTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-feature/src/test/java/org/apache/sis/feature/builder/FeatureTypeBuilderTest.java [UTF-8] Mon Apr 10 15:26:33 2017
@@ -245,7 +245,7 @@ public final strictfp class FeatureTypeB
final FeatureType type = builder.build();
builder = new FeatureTypeBuilder(type);
- assertEquals("name", "City", builder.getName().toString());
+ assertEquals("name", "City", builder.getName().toString());
assertEquals("superTypes", 0, builder.getSuperTypes().length);
final Iterator<PropertyTypeBuilder> it = builder.properties().iterator();
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=1790858&r1=1790857&r2=1790858&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] Mon Apr 10 15:26:33 2017
@@ -59,7 +59,7 @@ import org.apache.sis.util.iso.DefaultNa
*
* <div class="section">NetCDF unit symbols</div>
* The attributes in NetCDF files often merge the axis direction with the angular unit,
- * as in {@code "degrees_east"} or {@code "degrees_north"}.
+ * as in {@code "degrees_east"}, {@code "degrees_north"} or {@code "Degrees North"}.
* This class ignores those suffixes and unconditionally returns {@link Units#DEGREE} for all axis directions.
* In particular, the units for {@code "degrees_west"} and {@code "degrees_east"} do <strong>not</strong> have
* opposite sign. It is caller responsibility to handle the direction of axes associated to NetCDF units.
Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java?rev=1790858&r1=1790857&r2=1790858&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java [UTF-8] Mon Apr 10 15:26:33 2017
@@ -265,6 +265,7 @@ public final strictfp class UnitFormatTe
assertSame(Units.DEGREE, f.parse("degree"));
assertSame(Units.DEGREE, f.parse("degrees"));
assertSame(Units.DEGREE, f.parse("decimal degrees"));
+ assertSame(Units.DEGREE, f.parse("Degrees North"));
assertSame(Units.DEGREE, f.parse("degrees north"));
assertSame(Units.DEGREE, f.parse("degree north"));
assertSame(Units.DEGREE, f.parse("degrees_east"));