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 0905ce6c2e Marshall module improvements
0905ce6c2e is described below
commit 0905ce6c2eafe1061fa52f90275e8e907f01844f
Author: James Bognar <[email protected]>
AuthorDate: Sat Dec 6 21:04:58 2025 -0500
Marshall module improvements
---
.../juneau-marshall/src/main/java/org/apache/juneau/ClassMeta.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/ClassMeta.java
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/ClassMeta.java
index be80e3ef48..59b175f655 100644
--- a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/ClassMeta.java
+++ b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/ClassMeta.java
@@ -292,7 +292,6 @@ public class ClassMeta<T> extends ClassInfoTyped<T> {
}
var _beanMeta = (BeanMeta<T>)null;
- var _beanRegistry = new Value<BeanRegistry>();
if (! cat.isUnknown()) {
notABeanReason = "Known non-bean type";
@@ -300,7 +299,6 @@ public class ClassMeta<T> extends ClassInfoTyped<T> {
try {
_beanMeta = new
BeanMeta<>(ClassMeta.this, beanContext, beanFilter.get(), null, implClass.get()
== null ? null : noArgConstructor.get());
notABeanReason =
_beanMeta.notABeanReason;
-
_beanRegistry.set(_beanMeta.beanRegistry);
} catch (RuntimeException e) {
notABeanReason = e.getMessage();
}
@@ -552,6 +550,9 @@ public class ClassMeta<T> extends ClassInfoTyped<T> {
* defined on the class, regardless of whether the class is an actual
bean.
* This allows interfaces to define subclasses with type names.
*
+ * <p>
+ * This is a shortcut for calling getBeanMeta().getBeanRegistry().
+ *
* @return The bean registry for this class, or <jk>null</jk> if no
bean registry is associated with it.
*/
public BeanRegistry getBeanRegistry() {