RustedBones commented on code in PR #26320:
URL: https://github.com/apache/beam/pull/26320#discussion_r1211894972


##########
sdks/java/extensions/avro/src/main/java/org/apache/beam/sdk/extensions/avro/coders/AvroCoder.java:
##########
@@ -306,41 +357,34 @@ public ReflectData get() {
   private final EmptyOnDeserializationThreadLocal<DatumWriter<T>> writer;
   private final EmptyOnDeserializationThreadLocal<DatumReader<T>> reader;
 
-  // Lazily re-instantiated after deserialization
-  private final Supplier<ReflectData> reflectData;
-
   protected AvroCoder(Class<T> type, Schema schema) {
-    this(type, schema, false);
+    this(type, schema, true);

Review Comment:
   Good catch. I did not realize this one wasn't in sync with the `of` 
factories. Will keep previous behavior for the constructor.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to