sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1444845 - in /sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure: NumberRange.java Range.java
Date Mon, 11 Feb 2013 16:20:38 GMT
Author: desruisseaux
Date: Mon Feb 11 16:20:38 2013
New Revision: 1444845

URL: http://svn.apache.org/r1444845
Log:
Acknowledge the source of the <T extends Number & Comparable<? super T>> signature.
Note that there is no other way to express the condition "type T extends both Number and Comparable".
So legally, I think that we are okay since anyone wanting to parameterize NumberRange can
only obtain
that exact signature; there is no flexibility here (except for the 'T' variable name).  Even
the type
order is enforced by the Java language.

Modified:
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/NumberRange.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/Range.java

Modified: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/NumberRange.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/NumberRange.java?rev=1444845&r1=1444844&r2=1444845&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/NumberRange.java (original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/NumberRange.java Mon
Feb 11 16:20:38 2013
@@ -32,7 +32,8 @@ import org.apache.sis.util.resources.Err
  * @param <T> The type of range elements as a subclass of {@link Number}.
  *
  * @author  Martin Desruisseaux (IRD)
- * @since   0.3
+ * @author  Jody Garnett (for parameterized type suggestion)
+ * @since   0.3 (derived from geotk-2.4)
  * @version 0.3
  * @module
  *

Modified: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/Range.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/Range.java?rev=1444845&r1=1444844&r2=1444845&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/Range.java (original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/Range.java Mon Feb
11 16:20:38 2013
@@ -58,6 +58,7 @@ import java.util.Objects;
  *
  * @author  Joe White
  * @author  Martin Desruisseaux (Geomatys)
+ * @author  Jody Garnett (for parameterized type suggestion)
  * @since   0.3
  * @version 0.3
  * @module



Mime
View raw message