camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lb <>
Subject Re: [camel-bindy] Handle implied decimal field
Date Tue, 27 Nov 2012 08:00:41 GMT

In org.apache.camel.dataformat.bindy.FormatFactory for non "BigNumbers" the
Format object is chosen as follow:  

if (clazz == float.class || clazz == Float.class) {
    return pattern != null ? new FloatPatternFormat(pattern,
getLocale(locale)) : new FloatFormat();

I've noticed that the DataFiled annotation define the pattern field with ""
(empty String) as default value, thus the FormatFactory will always return
the *PatternFormat and never the simple *Format. 

Is there a reason for such behavior?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message