sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1712577 - in /sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/parameter: DefaultParameterValueGroup.java Parameters.java
Date Wed, 04 Nov 2015 16:13:57 GMT
Author: desruisseaux
Date: Wed Nov  4 16:13:51 2015
New Revision: 1712577

URL: http://svn.apache.org/viewvc?rev=1712577&view=rev
Log:
Provide default Parameters.toString() implementation.

Modified:
    sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/parameter/DefaultParameterValueGroup.java
    sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/parameter/Parameters.java

Modified: sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/parameter/DefaultParameterValueGroup.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/parameter/DefaultParameterValueGroup.java?rev=1712577&r1=1712576&r2=1712577&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/parameter/DefaultParameterValueGroup.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/parameter/DefaultParameterValueGroup.java
[UTF-8] Wed Nov  4 16:13:51 2015
@@ -38,7 +38,6 @@ import org.apache.sis.util.LenientCompar
 import org.apache.sis.util.ComparisonMode;
 import org.apache.sis.util.resources.Errors;
 import org.apache.sis.util.ArgumentChecks;
-import org.apache.sis.util.Debug;
 
 import static org.apache.sis.util.Utilities.deepEquals;
 import static org.apache.sis.referencing.IdentifiedObjects.isHeuristicMatchForName;
@@ -473,31 +472,6 @@ public class DefaultParameterValueGroup
         return copy;
     }
 
-    /**
-     * Returns a string representation of this group.
-     * The default implementation delegates to {@link ParameterFormat}.
-     *
-     * <p>This method is for information purpose only and may change in future SIS
version.</p>
-     */
-    @Debug
-    @Override
-    public String toString() {
-        return ParameterFormat.sharedFormat(this);
-    }
-
-    /**
-     * Prints a string representation of this group to the {@linkplain System#out standard
output stream}.
-     * If a {@linkplain java.io.Console console} is attached to the running JVM (i.e. if
the application
-     * is run from the command-line and the output is not redirected to a file) and if Apache
SIS thinks
-     * that the console supports the ANSI escape codes (a.k.a. X3.64), then a syntax coloring
will be applied.
-     *
-     * <p>This is a convenience method for debugging purpose and for console applications.</p>
-     */
-    @Debug
-    public void print() {
-        ParameterFormat.print(this);
-    }
-
 
 
 

Modified: sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/parameter/Parameters.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/parameter/Parameters.java?rev=1712577&r1=1712576&r2=1712577&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/parameter/Parameters.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/parameter/Parameters.java
[UTF-8] Wed Nov  4 16:13:51 2015
@@ -34,6 +34,7 @@ import org.apache.sis.referencing.Identi
 import org.apache.sis.util.ArgumentChecks;
 import org.apache.sis.util.ObjectConverters;
 import org.apache.sis.util.resources.Errors;
+import org.apache.sis.util.Debug;
 
 import static org.apache.sis.referencing.IdentifiedObjects.isHeuristicMatchForName;
 
@@ -108,7 +109,7 @@ import static org.apache.sis.referencing
  *
  * @author  Martin Desruisseaux (Geomatys)
  * @since   0.4
- * @version 0.6
+ * @version 0.7
  * @module
  */
 @XmlTransient
@@ -757,4 +758,33 @@ public abstract class Parameters impleme
             throw new IndexOutOfBoundsException(name);
         }
     }
+
+    /**
+     * Returns a string representation of this group.
+     * The default implementation delegates to {@link ParameterFormat}.
+     *
+     * <p>This method is for information purpose only and may change in future SIS
version.</p>
+     *
+     * @since 0.7
+     */
+    @Debug
+    @Override
+    public String toString() {
+        return ParameterFormat.sharedFormat(this);
+    }
+
+    /**
+     * Prints a string representation of this group to the {@linkplain System#out standard
output stream}.
+     * If a {@linkplain java.io.Console console} is attached to the running JVM (i.e. if
the application
+     * is run from the command-line and the output is not redirected to a file) and if Apache
SIS thinks
+     * that the console supports the ANSI escape codes (a.k.a. X3.64), then a syntax coloring
will be applied.
+     *
+     * <p>This is a convenience method for debugging purpose and for console applications.</p>
+     *
+     * @since 0.7
+     */
+    @Debug
+    public void print() {
+        ParameterFormat.print(this);
+    }
 }



Mime
View raw message