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 c7f92b1b95 Replace Mutaters with BasicConverter
c7f92b1b95 is described below
commit c7f92b1b953b33608c66452ac49bb1959e539a14
Author: James Bognar <[email protected]>
AuthorDate: Thu Apr 2 17:34:30 2026 -0700
Replace Mutaters with BasicConverter
---
.../src/main/java/org/apache/juneau/BeanSession.java | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanSession.java
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanSession.java
index 8ab95abe07..f807a76d33 100644
---
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanSession.java
+++
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/BeanSession.java
@@ -1258,21 +1258,7 @@ public class BeanSession extends ContextSession
implements ConverterSession {
} else if (isNullOrEmpty(value)) {
return null;
} else if (! hasMutater(from, to)) {
- var s = value.toString();
-
- var multiplier = (tc == Integer.class
|| tc == Short.class || tc == Long.class) ? getMultiplier(s) : 1;
- if (multiplier != 1) {
- s = s.substring(0, s.length() -
1).trim();
- long l = Long.parseLong(s) *
multiplier;
- if (tc == Integer.TYPE)
- return
(T)Integer.valueOf((int)l);
- if (tc == Short.TYPE)
- return
(T)Short.valueOf((short)l);
- if (tc == Long.TYPE)
- return
(T)Long.valueOf(l);
- } else {
- return ctxConverter.to(value,
outer, this, to.innerType(), to.getParameters());
- }
+ return ctxConverter.to(value, outer,
this, to.innerType(), to.getParameters());
}
}