@@ -876,6 +876,31 @@ public <T> FieldWriter<T> createFieldWriter(
876
876
String label ,
877
877
Method method ,
878
878
ObjectWriter initObjectWriter
879
+ ) {
880
+ return createFieldWriter (
881
+ provider ,
882
+ objectType ,
883
+ fieldName ,
884
+ ordinal ,
885
+ features ,
886
+ format ,
887
+ null ,
888
+ label ,
889
+ method , initObjectWriter
890
+ );
891
+ }
892
+
893
+ public <T > FieldWriter <T > createFieldWriter (
894
+ ObjectWriterProvider provider ,
895
+ Class <T > objectType ,
896
+ String fieldName ,
897
+ int ordinal ,
898
+ long features ,
899
+ String format ,
900
+ Locale locale ,
901
+ String label ,
902
+ Method method ,
903
+ ObjectWriter initObjectWriter
879
904
) {
880
905
method .setAccessible (true );
881
906
Class <?> fieldClass = method .getReturnType ();
@@ -886,7 +911,7 @@ public <T> FieldWriter<T> createFieldWriter(
886
911
}
887
912
888
913
if (initObjectWriter != null ) {
889
- FieldWriterObjectMethod objMethod = new FieldWriterObjectMethod (fieldName , ordinal , features , format , label , fieldType , fieldClass , null , method );
914
+ FieldWriterObjectMethod objMethod = new FieldWriterObjectMethod (fieldName , ordinal , features , format , locale , label , fieldType , fieldClass , null , method );
890
915
objMethod .initValueClass = fieldClass ;
891
916
if (initObjectWriter != ObjectWriterBaseModule .VoidObjectWriter .INSTANCE ) {
892
917
objMethod .initObjectWriter = initObjectWriter ;
@@ -980,7 +1005,7 @@ public <T> FieldWriter<T> createFieldWriter(
980
1005
return new FieldWriterObjectArrayMethod (fieldName , fieldClass .getComponentType (), ordinal , features , format , label , fieldType , fieldClass , field , method );
981
1006
}
982
1007
983
- return new FieldWriterObjectMethod (fieldName , ordinal , features , format , label , fieldType , fieldClass , null , method );
1008
+ return new FieldWriterObjectMethod (fieldName , ordinal , features , format , locale , label , fieldType , fieldClass , null , method );
984
1009
}
985
1010
986
1011
public <T > FieldWriter createFieldWriter (String fieldName , ToLongFunction <T > function ) {
@@ -1065,7 +1090,39 @@ public <T, V> FieldWriter<T> createFieldWriter(
1065
1090
Method method ,
1066
1091
Function <T , V > function
1067
1092
) {
1068
- return createFieldWriter (provider , objectClass , fieldName , ordinal , features , format , label , fieldType , fieldClass , null , method , function );
1093
+ return createFieldWriter (
1094
+ provider , objectClass , fieldName , ordinal , features , format , null , label , fieldType , fieldClass , null , method , function );
1095
+ }
1096
+
1097
+ public <T , V > FieldWriter <T > createFieldWriter (
1098
+ ObjectWriterProvider provider ,
1099
+ Class <T > objectClass ,
1100
+ String fieldName ,
1101
+ int ordinal ,
1102
+ long features ,
1103
+ String format ,
1104
+ String label ,
1105
+ Type fieldType ,
1106
+ Class <V > fieldClass ,
1107
+ Field field ,
1108
+ Method method ,
1109
+ Function <T , V > function
1110
+ ) {
1111
+ return createFieldWriter (
1112
+ provider ,
1113
+ objectClass ,
1114
+ fieldName ,
1115
+ ordinal ,
1116
+ features ,
1117
+ format ,
1118
+ null ,
1119
+ label ,
1120
+ fieldType ,
1121
+ fieldClass ,
1122
+ field ,
1123
+ method ,
1124
+ function
1125
+ );
1069
1126
}
1070
1127
1071
1128
public <T , V > FieldWriter <T > createFieldWriter (
@@ -1075,6 +1132,7 @@ public <T, V> FieldWriter<T> createFieldWriter(
1075
1132
int ordinal ,
1076
1133
long features ,
1077
1134
String format ,
1135
+ Locale locale ,
1078
1136
String label ,
1079
1137
Type fieldType ,
1080
1138
Class <V > fieldClass ,
@@ -1173,7 +1231,7 @@ public <T, V> FieldWriter<T> createFieldWriter(
1173
1231
return new FieldWriterObjectFuncFinal (fieldName , ordinal , features , format , label , fieldType , fieldClass , field , method , function );
1174
1232
}
1175
1233
1176
- return new FieldWriterObjectFunc (fieldName , ordinal , features , format , label , fieldType , fieldClass , field , method , function );
1234
+ return new FieldWriterObjectFunc (fieldName , ordinal , features , format , locale , label , fieldType , fieldClass , field , method , function );
1177
1235
}
1178
1236
1179
1237
static class LambdaInfo {
0 commit comments