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 4c243818ad juneau-marshall improvements
4c243818ad is described below
commit 4c243818add0c3e88241d6bfee7009fac3ff581a
Author: James Bognar <[email protected]>
AuthorDate: Mon Dec 15 10:51:02 2025 -0500
juneau-marshall improvements
---
.../apache/juneau/commons/annotation/AnnotationObject.java | 3 +--
.../src/main/java/org/apache/juneau/AnnotationWorkList.java | 3 +--
.../src/main/java/org/apache/juneau/BeanPropertyMeta.java | 12 ++++--------
3 files changed, 6 insertions(+), 12 deletions(-)
diff --git
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/annotation/AnnotationObject.java
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/annotation/AnnotationObject.java
index 48aae6f353..c771763421 100644
---
a/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/annotation/AnnotationObject.java
+++
b/juneau-core/juneau-commons/src/main/java/org/apache/juneau/commons/annotation/AnnotationObject.java
@@ -151,8 +151,7 @@ public class AnnotationObject implements Annotation {
* @param annotationType The annotation type of the annotation
implementation class.
*/
public Builder(Class<? extends Annotation> annotationType) {
- assertArgNotNull("annotationType", annotationType);
- this.annotationType = annotationType;
+ this.annotationType =
assertArgNotNull("annotationType", annotationType);
}
/**
diff --git
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/AnnotationWorkList.java
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/AnnotationWorkList.java
index 579a57916b..008a3a0424 100644
---
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/AnnotationWorkList.java
+++
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/AnnotationWorkList.java
@@ -80,8 +80,7 @@ public class AnnotationWorkList extends
ArrayList<AnnotationWork> {
private final VarResolverSession vrs;
private AnnotationWorkList(VarResolverSession vrs) {
- assertArgNotNull("vrs", vrs);
- this.vrs = vrs;
+ this.vrs = assertArgNotNull("vrs", vrs);
}
/**
diff --git
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanPropertyMeta.java
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanPropertyMeta.java
index 6230d1f735..cc7c6b5421 100644
---
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanPropertyMeta.java
+++
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanPropertyMeta.java
@@ -92,8 +92,7 @@ public class BeanPropertyMeta implements
Comparable<BeanPropertyMeta> {
* @return This object.
*/
public Builder beanRegistry(BeanRegistry value) {
- assertArgNotNull("value", value);
- beanRegistry = value;
+ beanRegistry = assertArgNotNull("value", value);
return this;
}
@@ -111,8 +110,7 @@ public class BeanPropertyMeta implements
Comparable<BeanPropertyMeta> {
* @return This object.
*/
public Builder delegateFor(BeanPropertyMeta value) {
- assertArgNotNull("value", value);
- delegateFor = value;
+ delegateFor = assertArgNotNull("value", value);
return this;
}
@@ -134,8 +132,7 @@ public class BeanPropertyMeta implements
Comparable<BeanPropertyMeta> {
* @return This object.
*/
public Builder rawMetaType(ClassMeta<?> value) {
- assertArgNotNull("value", value);
- rawTypeMeta = value;
+ rawTypeMeta = assertArgNotNull("value", value);
typeMeta = rawTypeMeta;
return this;
}
@@ -242,8 +239,7 @@ public class BeanPropertyMeta implements
Comparable<BeanPropertyMeta> {
* @return This object.
*/
public Builder setInnerField(FieldInfo value) {
- assertArgNotNull("value", value);
- innerField = value;
+ innerField = assertArgNotNull("value", value);
return this;
}