You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by rs...@apache.org on 2023/05/05 12:19:51 UTC

[avro] branch master updated: RecordWithTimestamps#equals should compare its own localDateTime with that.localDateTime (#2204)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 79cf4c499 RecordWithTimestamps#equals should compare its own localDateTime with that.localDateTime (#2204)
79cf4c499 is described below

commit 79cf4c499689de123def3991282c1ef1340567f7
Author: Sergey Nuyanzin <se...@aiven.io>
AuthorDate: Fri May 5 14:19:43 2023 +0200

    RecordWithTimestamps#equals should compare its own localDateTime with that.localDateTime (#2204)
---
 .../src/test/java/org/apache/avro/reflect/TestReflectLogicalTypes.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflectLogicalTypes.java b/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflectLogicalTypes.java
index f25f022aa..485a765d7 100644
--- a/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflectLogicalTypes.java
+++ b/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflectLogicalTypes.java
@@ -768,6 +768,6 @@ class RecordWithTimestamps {
       return false;
     }
     RecordWithTimestamps that = (RecordWithTimestamps) obj;
-    return Objects.equals(that.localDateTime, that.localDateTime);
+    return Objects.equals(localDateTime, that.localDateTime);
   }
 }