sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 01/02: Use {@systemProperty} javadoc tag (new in Java 12) where we are defining system properties.
Date Sat, 19 Oct 2019 13:49:18 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 52a543daba5872904b17f56bb96749e5102b169f
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Sat Oct 19 15:35:12 2019 +0200

    Use {@systemProperty} javadoc tag (new in Java 12) where we are defining system properties.
---
 .../src/test/java/org/apache/sis/test/TestConfiguration.java     | 9 +++++----
 .../org/apache/sis/internal/shapefile/ShapefileDescriptor.java   | 6 +++---
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/core/sis-utility/src/test/java/org/apache/sis/test/TestConfiguration.java b/core/sis-utility/src/test/java/org/apache/sis/test/TestConfiguration.java
index f81ce13..e5782de 100644
--- a/core/sis-utility/src/test/java/org/apache/sis/test/TestConfiguration.java
+++ b/core/sis-utility/src/test/java/org/apache/sis/test/TestConfiguration.java
@@ -29,26 +29,27 @@ import org.apache.sis.util.Static;
  */
 public final strictfp class TestConfiguration extends Static {
     /**
-     * The {@value} system property for enabling more extensive tests.
+     * The {@systemProperty org.apache.sis.test.extensive} system property for enabling more
extensive tests.
      * If this {@linkplain System#getProperties() system property} is set to {@code true},
      * then Apache SIS will run some tests which were normally skipped because they are slow.
      */
     public static final String EXTENSIVE_TESTS_KEY = "org.apache.sis.test.extensive";
 
     /**
-     * The {@value} system property for enabling verbose outputs.
+     * The {@systemProperty org.apache.sis.test.verbose} system property for enabling verbose
outputs.
      * If this {@linkplain System#getProperties() system property} is set to {@code true},
      * then the content sent to the {@link TestCase#out} field will be printed after each
test.
      */
     public static final String VERBOSE_OUTPUT_KEY = "org.apache.sis.test.verbose";
 
     /**
-     * The {@value} system property for enabling display of test images or widgets.
+     * The {@systemProperty org.apache.sis.test.gui.show} system property
+     * for enabling display of test images or widgets.
      */
     public static final String SHOW_WIDGET_KEY = "org.apache.sis.test.gui.show";
 
     /**
-     * The {@value} system property for setting the output encoding.
+     * The {@systemProperty org.apache.sis.test.encoding} system property for setting the
output encoding.
      * This property is used only if the {@link #VERBOSE_OUTPUT_KEY} property
      * is set to "{@code true}". If this property is not set, then the system
      * encoding will be used.
diff --git a/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/ShapefileDescriptor.java
b/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/ShapefileDescriptor.java
index 9c6318f..c3ab8bb 100644
--- a/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/ShapefileDescriptor.java
+++ b/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/ShapefileDescriptor.java
@@ -159,13 +159,13 @@ public class ShapefileDescriptor {
     }
 
     /**
-     * Returns the M Min property. 
+     * Returns the M Min property.
      * @return M min.
      */
     public double getMmin() {
         return this.mmin;
     }
-    
+
     /**
      * Returns the M Max property.
      * @return M Max.
@@ -180,7 +180,7 @@ public class ShapefileDescriptor {
     @Override
     public String toString() {
         StringBuilder s = new StringBuilder();
-        String lineSeparator = System.getProperty("line.separator", "\n");
+        String lineSeparator = System.lineSeparator();
 
         s.append("FileCode: ").append(this.fileCode).append(lineSeparator);
         s.append("FileLength: ").append(this.fileLength).append(lineSeparator);


Mime
View raw message