From c324351bcf4ab36123b64438c5e6a4724f6b1178 Mon Sep 17 00:00:00 2001 From: Michiel Thomassen Date: Wed, 13 Mar 2024 14:39:49 +0100 Subject: [PATCH] Don't use org.apache.commons.lang3.ArrayUtils --- .../io/quarkus/avro/deployment/AvroSchemaCodeGenProvider.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);