public String okNameForSetter(AnnotatedMethod am) { String name = am.getName(); /* For mutators, let's not require it to be public. Just need * to be able to call it, i.e. do need to 'fix' access if so * (which is done at a later point as needed) */ if (name.startsWith("set")) { name = mangleSetterName(am, name.substring(3)); if (name == null) { // plain old "set" is no good... return null; } if ("metaClass".equals(name)) { // 26-Nov-2009 [JACSON-103], need to suppress this internal groovy method if (isGroovyMetaClassSetter(am)) { return null; } } return name; } return null; }
public String okNameForSetter(AnnotatedMethod am) { String name = am.getName(); /* For mutators, let's not require it to be public. Just need * to be able to call it, i.e. do need to 'fix' access if so * (which is done at a later point as needed) */ if (name.startsWith("set")) { name = mangleSetterName(am, name.substring(3)); if (name == null) { // plain old "set" is no good... return null; } if ("metaClass".equals(name)) { // 26-Nov-2009 [JACSON-103], need to suppress this internal groovy method if (isGroovyMetaClassSetter(am)) { return null; } } return name; } return null; }