From 08153e878e9246c5650404224f7aed979702ef85 Mon Sep 17 00:00:00 2001 From: Yubao Liu Date: Thu, 12 Aug 2021 22:54:51 +0800 Subject: [PATCH] make separate schema compiling really work --- .../io/quarkus/avro/deployment/AvroSchemaCodeGenProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/avro/deployment/src/main/java/io/quarkus/avro/deployment/AvroSchemaCodeGenProvider.java b/extensions/avro/deployment/src/main/java/io/quarkus/avro/deployment/AvroSchemaCodeGenProvider.java index a274ca77a7fdb..4f9da2da4a0e2 100644 --- a/extensions/avro/deployment/src/main/java/io/quarkus/avro/deployment/AvroSchemaCodeGenProvider.java +++ b/extensions/avro/deployment/src/main/java/io/quarkus/avro/deployment/AvroSchemaCodeGenProvider.java @@ -46,7 +46,7 @@ void compileSingleFile(Path filePath, // allow them to share a single schema so reuse and sharing of schema // is possible. try { - if (options.imports == null) { + if (options.imports == AvroOptions.EMPTY) { schema = new Schema.Parser().parse(file); } else { schema = schemaParser.parse(file);