avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject [1/4] avro git commit: Revert "AVRO-1695. Fix deepCopy() to get correct logical type conversion."
Date Thu, 01 Sep 2016 13:48:17 GMT
Repository: avro
Updated Branches:
  refs/heads/master 9456db018 -> 9cfd33870


Revert "AVRO-1695. Fix deepCopy() to get correct logical type conversion."

This reverts commit 9456db01859dd3619fb09a6d4205ab433b357b02.

Incorrect JIRA key


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

Branch: refs/heads/master
Commit: 5d45505b85fb55d4d3753b695bd3afc3f15b0c30
Parents: 9456db0
Author: Sean Busbey <busbey@apache.org>
Authored: Thu Sep 1 08:44:21 2016 -0500
Committer: Sean Busbey <busbey@apache.org>
Committed: Thu Sep 1 08:44:21 2016 -0500

----------------------------------------------------------------------
 .../avro/src/main/java/org/apache/avro/generic/GenericData.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/avro/blob/5d45505b/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java
----------------------------------------------------------------------
diff --git a/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java b/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java
index 76eb625..9f3cc4d 100644
--- a/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java
+++ b/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java
@@ -1030,7 +1030,7 @@ public class GenericData {
     LogicalType logicalType = schema.getLogicalType();
     if (logicalType == null)           // not a logical type -- use raw copy
       return (T)deepCopyRaw(schema, value);
-    Conversion conversion = getConversionByClass(value.getClass(), logicalType);
+    Conversion conversion = getConversionByClass(value.getClass());
     if (conversion == null)            // no conversion defined -- try raw copy
       return (T)deepCopyRaw(schema, value);
     // logical type with conversion: convert to raw, copy, then convert back to logical


Mime
View raw message