Skip to content

Commit 6e5d80c

Browse files
committed
Internal refactoring
1 parent 7de1dcc commit 6e5d80c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/main/java/org/apache/commons/imaging/common/ImageBuilder.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,7 @@ public class ImageBuilder {
7070
* @throws RasterFormatException if {@code width} or {@code height} are equal or less than zero
7171
*/
7272
public ImageBuilder(final int width, final int height, final boolean hasAlpha) {
73-
checkDimensions(width, height);
74-
75-
data = Allocator.intArray(width * height);
76-
this.width = width;
77-
this.height = height;
78-
this.hasAlpha = hasAlpha;
79-
this.isAlphaPremultiplied = false;
73+
this(width, height, hasAlpha, false);
8074
}
8175

8276
/**

0 commit comments

Comments
 (0)