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 a62926a787 Marshall module improvements
a62926a787 is described below

commit a62926a7872684fe4161631e0e02cc56a5ee011a
Author: James Bognar <[email protected]>
AuthorDate: Mon Dec 8 18:31:19 2025 -0500

    Marshall module improvements
---
 .../src/main/java/org/apache/juneau/BeanMeta.java              | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanMeta.java 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanMeta.java
index 3713533828..df2f0726b7 100644
--- a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanMeta.java
+++ b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanMeta.java
@@ -271,15 +271,15 @@ public class BeanMeta<T> {
                 * Returns the property name of the specified field if it's a 
valid property.
                 * Returns null if the field isn't a valid property.
                 */
-               private String findPropertyName(FieldInfo f) {
+               private static String findPropertyName(FieldInfo f, 
AnnotationProvider ap, PropertyNamer pn) {
                        List<Beanp> lp = list();
                        List<Name> ln = list();
-                       _ap.find(Beanp.class, f).forEach(x -> 
lp.add(x.inner()));
-                       _ap.find(Name.class, f).forEach(x -> ln.add(x.inner()));
+                       ap.find(Beanp.class, f).forEach(x -> lp.add(x.inner()));
+                       ap.find(Name.class, f).forEach(x -> ln.add(x.inner()));
                        var name = bpName(lp, ln);
                        if (isNotEmpty(name))
                                return name;
-                       return _propertyNamer.getPropertyName(f.getName());
+                       return pn.getPropertyName(f.getName());
                }
 
                void init(BeanMeta<T> beanMeta) {
@@ -432,7 +432,7 @@ public class BeanMeta<T> {
                                } else /* Use 'better' introspection */ {
 
                                        findBeanFields(_ctx, c2, stopClass, 
fVis).forEach(x -> {
-                                               var name = 
findPropertyName(info(x));
+                                               var name = 
findPropertyName(info(x), _ap, _propertyNamer);
                                                if (nn(name)) {
                                                        if (! 
normalProps.containsKey(name))
                                                                
normalProps.put(name, BeanPropertyMeta.builder(beanMeta, name));

Reply via email to