增加对 property 首字母小写但第二个字母大写的情况的支持

例如:  private int iTest; JavaBean标准的getter方法为 getiTest()
This commit is contained in:
阿金
2014-01-02 23:10:47 +08:00
committed by ptma
parent e2a127b817
commit 5156bb6a3d
@@ -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;
}