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:12 UTC

[avro] 01/02: AVRO-2822: Add warning to an experimental method.

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 6e9286ec80af368b2750a57d7a7869cb97ff3d74
Author: Ryan Skraba <ry...@skraba.com>
AuthorDate: Fri May 29 16:28:36 2020 +0200

    AVRO-2822: Add warning to an experimental method.
---
 lang/java/avro/src/main/java/org/apache/avro/Schema.java | 1 +
 1 file changed, 1 insertion(+)

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 89e99f8..ce9d778 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,6 +398,7 @@ 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.")
   public String toString(Collection<Schema> referencedSchemas, boolean pretty) {
     Schema.Names names = new Schema.Names();
     if (referencedSchemas != null) {