avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [avro] branch master updated: Fix test
Date Tue, 06 Nov 2018 20:49:14 GMT
This is an automated email from the ASF dual-hosted git repository.

dkulp 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 fd26721  Fix test
fd26721 is described below

commit fd26721a5b333d59ebf37d39ed69fedcf33dc8dd
Author: Daniel Kulp <dkulp@apache.org>
AuthorDate: Tue Nov 6 15:48:40 2018 -0500

    Fix test
---
 .../avro/src/test/java/org/apache/avro/reflect/TestReflect.java     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java b/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java
index 8304bd0..3208f16 100644
--- a/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java
+++ b/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java
@@ -754,7 +754,8 @@ public class TestReflect {
     String saved = System.getProperty("avro.disable.unsafe");
     try {
       System.setProperty("avro.disable.unsafe", "true");
-      ReflectData.ACCESSOR_CACHE.clear();
+      ReflectData.ACCESSOR_CACHE.remove(multipleAnnotationRecord.class);
+      ReflectData.ACCESSOR_CACHE.remove(AnotherSampleRecord.class);
       ReflectionUtil.resetFieldAccess();
       testMultipleAnnotations();
       testRecordWithNullIO();
@@ -763,7 +764,8 @@ public class TestReflect {
         System.clearProperty("avro.disable.unsafe");
       else
         System.setProperty("avro.disable.unsafe", saved);
-      ReflectData.ACCESSOR_CACHE.clear();
+      ReflectData.ACCESSOR_CACHE.remove(multipleAnnotationRecord.class);
+      ReflectData.ACCESSOR_CACHE.remove(AnotherSampleRecord.class);
       ReflectionUtil.resetFieldAccess();
     }
   }


Mime
View raw message