checkArgument(method.getReturnType() != null);
checkArgument(method.getName() != null);
checkArgument(!method.getName().isEmpty());
- final String prefix = Types.BOOLEAN.equals(method.getReturnType()) ? "is" : "get";
+ final String prefix = BindingMapping.getGetterPrefix(Types.BOOLEAN.equals(method.getReturnType()));
if (!method.getName().startsWith(prefix)) {
return null;
}