This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-imaging.git
The following commit(s) were added to refs/heads/master by this push: new 6e5d80c6 Internal refactoring 6e5d80c6 is described below commit 6e5d80c6aa854496e8030caae7454a3436de77ae Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sat Apr 26 08:29:06 2025 -0400 Internal refactoring --- src/main/java/org/apache/commons/imaging/common/ImageBuilder.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java b/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java index 9a373d5e..35d64651 100644 --- a/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java +++ b/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java @@ -70,13 +70,7 @@ public class ImageBuilder { * @throws RasterFormatException if {@code width} or {@code height} are equal or less than zero */ public ImageBuilder(final int width, final int height, final boolean hasAlpha) { - checkDimensions(width, height); - - data = Allocator.intArray(width * height); - this.width = width; - this.height = height; - this.hasAlpha = hasAlpha; - this.isAlphaPremultiplied = false; + this(width, height, hasAlpha, false); } /**