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 2ad86a37c7 Commons improvements
2ad86a37c7 is described below
commit 2ad86a37c75a48c85ef5bb64da49636fce9c5dbf
Author: James Bognar <[email protected]>
AuthorDate: Wed Dec 17 11:44:38 2025 -0500
Commons improvements
---
.../src/main/java/org/apache/juneau/Context.java | 16 ++--------------
.../java/org/apache/juneau/rest/client/RestClient.java | 10 ----------
2 files changed, 2 insertions(+), 24 deletions(-)
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 171b3b26c3..1d5e9b6250 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
@@ -78,15 +78,13 @@ public abstract class Context {
public abstract static class Builder {
private boolean debug;
+ private final AnnotationWorkList applied =
AnnotationWorkList.create();
+ private Cache<HashKey,? extends Context> cache;
private Class<? extends Context> type;
private Context impl;
private List<Annotation> annotations;
-
- private Cache<HashKey,? extends Context> cache;
private final List<Object> builders = list();
- private final AnnotationWorkList applied =
AnnotationWorkList.create();
-
/**
* Constructor.
* Default settings.
@@ -861,7 +859,6 @@ 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();
@@ -934,15 +931,6 @@ 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.
diff --git
a/juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java
b/juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java
index a6282b278a..17f66e434f 100644
---
a/juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java
+++
b/juneau-rest/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestClient.java
@@ -7768,16 +7768,6 @@ public class RestClient extends BeanContextable
implements HttpClient, Closeable
*/
protected void init() {}
- /**
- * 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(RestClient.Builder builder) {}
-
/**
* Returns <jk>true</jk> if empty request form-data parameter values
should be ignored.
*