You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by ie...@apache.org on 2020/06/01 13:26:13 UTC

[avro] 02/02: Fix @Deprecated tag (no value until JDK 9)

This is an automated email from the ASF dual-hosted git repository.

iemejia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git

commit 42d81d70e7b9409d3b17fbcc9ea102876b45b945
Author: RyanSkraba <ry...@skraba.com>
AuthorDate: Mon Jun 1 14:31:08 2020 +0200

    Fix @Deprecated tag (no value until JDK 9)
---
 lang/java/avro/src/main/java/org/apache/avro/Schema.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lang/java/avro/src/main/java/org/apache/avro/Schema.java b/lang/java/avro/src/main/java/org/apache/avro/Schema.java
index ce9d778..ff603cd 100644
--- a/lang/java/avro/src/main/java/org/apache/avro/Schema.java
+++ b/lang/java/avro/src/main/java/org/apache/avro/Schema.java
@@ -398,7 +398,8 @@ public abstract class Schema extends JsonProperties implements Serializable {
    * @param referencedSchemas referenced schemas
    * @param pretty            if true, pretty-print JSON.
    */
-  @Deprecated("Use at your own risk. This method should be removed with AVRO-2832.")
+  // Use at your own risk. This method should be removed with AVRO-2832.
+  @Deprecated
   public String toString(Collection<Schema> referencedSchemas, boolean pretty) {
     Schema.Names names = new Schema.Names();
     if (referencedSchemas != null) {