This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 90d11cc706 Commons improvements
90d11cc706 is described below

commit 90d11cc70638a098ad6bf14d8bbb41f5996cc297
Author: James Bognar <[email protected]>
AuthorDate: Wed Dec 17 11:46:55 2025 -0500

    Commons improvements
---
 .../src/main/java/org/apache/juneau/Context.java               | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/Context.java 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/Context.java
index 1d5e9b6250..7f64719870 100644
--- a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/Context.java
+++ b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/Context.java
@@ -859,6 +859,7 @@ public abstract class Context {
         */
        protected Context(Builder builder) {
                assertArgNotNull("builder", builder);
+               init(builder);
                debug = builder.debug;
                annotations = copyOf(builder.annotations);
                annotationProvider = 
AnnotationProvider.create().addRuntimeAnnotations(annotations).build();
@@ -931,6 +932,15 @@ public abstract class Context {
                return r(properties());
        }
 
+       /**
+        * Perform optional initialization on builder before it is used.
+        *
+        * <p>
+        * Default behavior is a no-op.
+        *
+        * @param builder The builder to initialize.
+        */
+       protected void init(Builder builder) {}
 
        /**
         * Returns the properties on this bean as a map for debugging.

Reply via email to