sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1733591 - in /sis/branches/JDK8/core: sis-referencing/src/main/java/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java sis-utility/src/main/java/org/apache/sis/internal/system/Semaphores.java
Date Fri, 04 Mar 2016 12:26:03 GMT
Author: desruisseaux
Date: Fri Mar  4 12:26:02 2016
New Revision: 1733591

URL: http://svn.apache.org/viewvc?rev=1733591&view=rev
Log:
Apply an annotation about workaround for supporting some deprecated EPSG codes.
This is for documentation purpose only.

Modified:
    sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java
    sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/Semaphores.java

Modified: sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java?rev=1733591&r1=1733590&r2=1733591&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java
[UTF-8] Fri Mar  4 12:26:02 2016
@@ -107,6 +107,7 @@ import org.apache.sis.util.ArgumentCheck
 import org.apache.sis.util.CharSequences;
 import org.apache.sis.util.Localized;
 import org.apache.sis.util.Version;
+import org.apache.sis.util.Workaround;
 import org.apache.sis.util.collection.Containers;
 import org.apache.sis.measure.MeasurementRange;
 import org.apache.sis.measure.NumberRange;
@@ -170,6 +171,7 @@ public class EPSGDataAccess extends Geod
      *
      * @see #replaceDeprecatedCS
      */
+    @Workaround(library = "EPSG:6401-6420", version = "8.9")        // Deprecated in 2002
but still present in 2016.
     private static final Map<Integer,Integer> DEPRECATED_CS = deprecatedCS();
     static Map<Integer,Integer> deprecatedCS() {
         final Map<Integer,Integer> m = new HashMap<>(24);

Modified: sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/Semaphores.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/Semaphores.java?rev=1733591&r1=1733590&r2=1733591&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/Semaphores.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/Semaphores.java
[UTF-8] Fri Mar  4 12:26:02 2016
@@ -16,6 +16,8 @@
  */
 package org.apache.sis.internal.system;
 
+import org.apache.sis.util.Workaround;
+
 
 /**
  * Thread-local booleans that need to be shared across different packages. Each thread has
its own set of booleans.
@@ -60,6 +62,7 @@ public final class Semaphores {
      *
      * <p><b>Example:</b> EPSG:3752 was a Mercator (variant A) projection
but set the latitude of origin to 41°S.</p>
      */
+    @Workaround(library = "EPSG:3752", version = "8.9")        // Deprecated in 2007 but
still present in 2016.
     public static final byte SUSPEND_PARAMETER_CHECK = 8;
 
     /**



Mime
View raw message