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 c21a05dfb0ed2..e7ac52c12b7e0 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 @@ -7,7 +7,6 @@ import org.apache.avro.Conversions; import org.apache.avro.Schema; import org.apache.avro.compiler.specific.SpecificCompiler; -import org.apache.commons.lang3.ArrayUtils; import io.quarkus.bootstrap.prebuild.CodeGenException; import io.quarkus.deployment.CodeGenProvider; @@ -48,7 +47,7 @@ void compileSingleFile(Path filePath, // allow them to share a single schema so reuse and sharing of schema // is possible. try { - if (ArrayUtils.isEmpty(options.imports)) { + if (options.imports == null || options.imports.length == 0) { schema = new Schema.Parser().parse(file); } else { schema = schemaParser.parse(file);