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
commit 280c5cd80a3de76fa1beab36ac548b961c45e635 Author: Gary Gregory <[email protected]> AuthorDate: Fri Jan 2 18:34:10 2026 -0500 Make class final --- src/main/java/org/apache/commons/imaging/common/Allocator.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/imaging/common/Allocator.java b/src/main/java/org/apache/commons/imaging/common/Allocator.java index 014214f8..5234624d 100644 --- a/src/main/java/org/apache/commons/imaging/common/Allocator.java +++ b/src/main/java/org/apache/commons/imaging/common/Allocator.java @@ -24,7 +24,7 @@ import java.util.function.IntFunction; /** * Checks inputs for meeting allocation limits and allocates arrays. */ -public class Allocator { +public final class Allocator { private static final String CANONICAL_NAME = Allocator.class.getCanonicalName(); @@ -36,6 +36,13 @@ public class Allocator { LIMIT = Integer.getInteger(CANONICAL_NAME, DEFAULT); } + /** + * Private constructor to prevent instantiation of utility class. + */ + private Allocator() { + // Utility class + } + /** * Allocates an Object of type T of the requested size. *
