avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject avro git commit: AVRO-1987: Add @deprecated tag to getConverion method
Date Mon, 06 Feb 2017 14:17:19 GMT
Repository: avro
Updated Branches:
  refs/heads/branch-1.8 7ec35ea24 -> b2e162763


AVRO-1987: Add @deprecated tag to getConverion method

Added function getConvertion with the correct naming.
A @Deprecated tag has been added to the incorrect function name.


Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/b2e16276
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/b2e16276
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/b2e16276

Branch: refs/heads/branch-1.8
Commit: b2e1627632227d8de32c1ad5631e06e3bb124c14
Parents: 7ec35ea
Author: sacharya <suraj.spa@gmail.com>
Authored: Fri Feb 3 22:41:10 2017 -0600
Committer: Gabor Szadovszky <gabor@apache.org>
Committed: Mon Feb 6 14:04:52 2017 +0100

----------------------------------------------------------------------
 CHANGES.txt                                                 | 3 +++
 .../java/org/apache/avro/specific/SpecificRecordBase.java   | 9 +++++++++
 2 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/avro/blob/b2e16276/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index aed8391..6302ea6 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -102,6 +102,9 @@ Avro 1.8.2 (5 November 2016)
 
     AVRO-1951: Python: Fix ipc_test.py with a valid DNS name. (blue)
 
+    AVRO-1987: Add @deprecated tag to getConverion method
+    (Suraj Acharya via gabor)
+
 Avro 1.8.1 (14 May 2016)
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/avro/blob/b2e16276/lang/java/avro/src/main/java/org/apache/avro/specific/SpecificRecordBase.java
----------------------------------------------------------------------
diff --git a/lang/java/avro/src/main/java/org/apache/avro/specific/SpecificRecordBase.java
b/lang/java/avro/src/main/java/org/apache/avro/specific/SpecificRecordBase.java
index baedeb8..ca03da6 100644
--- a/lang/java/avro/src/main/java/org/apache/avro/specific/SpecificRecordBase.java
+++ b/lang/java/avro/src/main/java/org/apache/avro/specific/SpecificRecordBase.java
@@ -50,7 +50,16 @@ public abstract class SpecificRecordBase
     return get(getSchema().getField(fieldName).pos());
   }
 
+  /**
+   * @deprecated As of Avro 1.8.2, this method has been moved to
+   * {@link #getConversion(String)} method from 1.9.0.
+   */
+  @Deprecated
   public Conversion<?> getConverion(String fieldName) {
+    return getConversion(fieldName);
+  }
+
+  public Conversion<?> getConversion(String fieldName) {
     return getConversion(getSchema().getField(fieldName).pos());
   }
 


Mime
View raw message