Skip to content

Commit

Permalink
Don't use org.apache.commons.lang3.ArrayUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel Thomassen authored and Michiel Thomassen committed Mar 13, 2024
1 parent 0aa6ad4 commit c324351
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c324351

Please sign in to comment.