/super-csv/src/main/java/org/supercsv/util/ReflectionUtils.java
for ( final Method method : clazz.getMethods ( ) ) { if ( !getterName.equalsIgnoreCase ( method.getName ( ) ) || method.getParameterTypes ( ) .length != 0 || method.getReturnType ( ) .equals ( void.class ) ) { continue; }
fieldName, clazz.getName())); } return getter; } private static Method findGetterWithCompatibleReturnType(final String getterName, final Class<?> clazz, final boolean enforceBooleanReturnType) { <extra_id_0> } if( !enforceBooleanReturnType || boolean.class.equals(method.getReturnType()) || Boolean.class.equals(method.getReturnType()) ) { return method; } }