mirror of
https://github.com/alibaba/fastjson.git
synced 2026-10-26 03:19:37 +08:00
增加对 property 首字母小写但第二个字母大写的情况的支持
例如: private int iTest; JavaBean标准的getter方法为 getiTest()
This commit is contained in:
@@ -975,6 +975,8 @@ public class TypeUtils {
|
||||
propertyName = methodName.substring(4);
|
||||
} else if (c3 == 'f') {
|
||||
propertyName = methodName.substring(3);
|
||||
} else if (methodName.length()>=5 && Character.isUpperCase(methodName.charAt(4))){
|
||||
propertyName = Introspector.decapitalize(methodName.substring(3));
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user