You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2019/06/29 13:58:07 UTC

[sis] 01/02: Revert erroneous removal of 2 methods.

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 24cf3189c481577be3fd359086f87dfd37bc381b
Author: Martin Desruisseaux <ma...@geomatys.com>
AuthorDate: Sat Jun 29 11:16:51 2019 +0200

    Revert erroneous removal of 2 methods.
---
 .../org/apache/sis/internal/referencing/DeprecatedCode.java   | 11 +++++++++++
 .../org/apache/sis/internal/referencing/DeprecatedName.java   | 11 +++++++++++
 2 files changed, 22 insertions(+)

diff --git a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/DeprecatedCode.java b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/DeprecatedCode.java
index e3be616..71f811c 100644
--- a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/DeprecatedCode.java
+++ b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/DeprecatedCode.java
@@ -87,4 +87,15 @@ public final class DeprecatedCode extends ImmutableIdentifier implements Depreca
     public InternationalString getRemarks() {
         return super.getDescription();
     }
+
+    /**
+     * Returns {@code null}, since we used the description for the superseded information.
+     * See <cite>"Implementation note"</cite> in class javadoc.
+     *
+     * @return {@code null}.
+     */
+    @Override
+    public InternationalString getDescription() {
+        return null;
+    }
 }
diff --git a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/DeprecatedName.java b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/DeprecatedName.java
index f7a338a..306b531 100644
--- a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/DeprecatedName.java
+++ b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/DeprecatedName.java
@@ -79,4 +79,15 @@ public final class DeprecatedName extends NamedIdentifier implements Deprecable
     public InternationalString getRemarks() {
         return super.getDescription();
     }
+
+    /**
+     * Returns {@code null}, since we used the description for the superseded information.
+     * See <cite>"Implementation note"</cite> in class javadoc.
+     *
+     * @return {@code null}.
+     */
+    @Override
+    public InternationalString getDescription() {
+        return null;
+    }
 }