public static Method getSetterMethodNotCheckParamType ( Class < ? > cType , String fieldName ) { String methodName = getMethodName ( fieldName , SET_METHOD_PREFIX ) ; Method [ ] methods = cType . getMethods ( ) ; for ( Method m : methods ) { if ( m . getName ( ) . equals ( methodName ) && m . getParameterCount ( ) == 1 ) { return m ; } } return null ; }
Gets setter method not check param type .