Don't presize an empty array

This commit is contained in:
Grzegorz Piwowarek
2020-02-14 15:43:15 +01:00
parent 75fd56c5d3
commit 81d9075373

View File

@@ -70,7 +70,7 @@ class CacheProcessor {
}
}
}
return new ValidationErrorBuildItem(throwables.toArray(new Throwable[throwables.size()]));
return new ValidationErrorBuildItem(throwables.toArray(new Throwable[0]));
}
@BuildStep