From e58a21b90cb1f5299524a384e07430b1633aa2d6 Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Wed, 13 Nov 2024 14:33:47 -0500 Subject: [PATCH] Update AvroUtils.java --- .../beam/sdk/extensions/avro/schemas/utils/AvroUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdks/java/extensions/avro/src/main/java/org/apache/beam/sdk/extensions/avro/schemas/utils/AvroUtils.java b/sdks/java/extensions/avro/src/main/java/org/apache/beam/sdk/extensions/avro/schemas/utils/AvroUtils.java index fab44be3005b..ed868eebe774 100644 --- a/sdks/java/extensions/avro/src/main/java/org/apache/beam/sdk/extensions/avro/schemas/utils/AvroUtils.java +++ b/sdks/java/extensions/avro/src/main/java/org/apache/beam/sdk/extensions/avro/schemas/utils/AvroUtils.java @@ -485,7 +485,7 @@ public static org.apache.avro.Schema.Field toAvroField(Field field, String names org.apache.avro.Schema fieldSchema = getFieldSchema(field.getType(), field.getName(), namespace); return new org.apache.avro.Schema.Field( - field.getName(), fieldSchema, field.getDescription(), (Object) null); + field.getName(), fieldSchema, field.getDescription(), null); } private AvroUtils() {}