sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1801295 - in /sis/branches/JDK8/core: sis-metadata/src/main/java/org/apache/sis/internal/metadata/ sis-referencing/src/main/java/org/apache/sis/referencing/factory/sql/ sis-utility/src/test/java/org/apache/sis/util/iso/
Date Sat, 08 Jul 2017 15:04:17 GMT
Author: desruisseaux
Date: Sat Jul  8 15:04:17 2017
New Revision: 1801295

URL: http://svn.apache.org/viewvc?rev=1801295&view=rev
Log:
Remove unnecessary serialVersionUDI.

Modified:
    sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/RecordSchemaSIS.java
    sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/factory/sql/AuthorityCodes.java
    sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/iso/SerializableRecordSchema.java

Modified: sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/RecordSchemaSIS.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/RecordSchemaSIS.java?rev=1801295&r1=1801294&r2=1801295&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/RecordSchemaSIS.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/RecordSchemaSIS.java
[UTF-8] Sat Jul  8 15:04:17 2017
@@ -30,13 +30,9 @@ import org.apache.sis.util.iso.DefaultRe
  * @since   0.7
  * @module
  */
+@SuppressWarnings("serial")  // serialVersionUID not needed because of writeReplace().
 final class RecordSchemaSIS extends DefaultRecordSchema implements Serializable {
     /**
-     * For cross-version compatibility.
-     */
-    private static final long serialVersionUID = 2708181165532467516L;
-
-    /**
      * The schema used in SIS for creating records.
      */
     static final DefaultRecordSchema INSTANCE = new RecordSchemaSIS();
@@ -51,7 +47,7 @@ final class RecordSchemaSIS extends Defa
     /**
      * On serialization, returns a proxy which will be resolved as {@link #INSTANCE} on deserialization.
      */
-    Object writeReplace() throws ObjectStreamException {
+    protected Object writeReplace() throws ObjectStreamException {
         return new Proxy();
     }
 

Modified: sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/factory/sql/AuthorityCodes.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/factory/sql/AuthorityCodes.java?rev=1801295&r1=1801294&r2=1801295&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/factory/sql/AuthorityCodes.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/factory/sql/AuthorityCodes.java
[UTF-8] Sat Jul  8 15:04:17 2017
@@ -51,13 +51,9 @@ import org.apache.sis.util.Debug;
  * @since   0.7
  * @module
  */
+@SuppressWarnings("serial")   // serialVersionUID not needed because of writeReplace().
 final class AuthorityCodes extends AbstractMap<String,String> implements Serializable
{
     /**
-     * For compatibility with different versions.
-     */
-    private static final long serialVersionUID = 6118171679321975503L;
-
-    /**
      * Highest code value (inclusive) that this {@code AuthorityCodes} support during iterations.
      * This is based on the upper value of the highest range of codes once used by EPSG.
      */

Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/iso/SerializableRecordSchema.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/iso/SerializableRecordSchema.java?rev=1801295&r1=1801294&r2=1801295&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/iso/SerializableRecordSchema.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/iso/SerializableRecordSchema.java
[UTF-8] Sat Jul  8 15:04:17 2017
@@ -48,7 +48,7 @@ final class SerializableRecordSchema ext
     /**
      * On serialization, returns a proxy which will be resolved as {@link #INSTANCE} on deserialization.
      */
-    Object writeReplace() throws ObjectStreamException {
+    protected Object writeReplace() throws ObjectStreamException {
         return new Proxy();
     }
 



Mime
View raw message