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 cb993243 Javadoc cb993243 is described below commit cb993243e3da91905d30deb2816af15e7e4841d6 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon May 15 21:02:10 2023 -0400 Javadoc --- src/main/java/org/apache/commons/imaging/common/ImageBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 610ac48f..f0546fc7 100644 --- a/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java +++ b/src/main/java/org/apache/commons/imaging/common/ImageBuilder.java @@ -141,6 +141,8 @@ public class ImageBuilder { } /** + * Checks for valid dimensions and throws {@link RasterFormatException} if the inputs are invalid. + * * @param width image width (must be greater than zero) * @param height image height (must be greater than zero) * @throws RasterFormatException if {@code width} or {@code height} are equal or less than zero @@ -152,7 +154,6 @@ public class ImageBuilder { if (height <= 0) { throw new RasterFormatException("zero or negative height value"); } - } /**