garydgregory commented on code in PR #218:
URL: https://github.com/apache/commons-dbutils/pull/218#discussion_r1405300486
##########
src/main/java/org/apache/commons/dbutils/wrappers/StringTrimmedResultSet.java:
##########
@@ -92,12 +92,15 @@ public Object invoke(final Object proxy, final Method
method, final Object[] arg
Object result = method.invoke(this.resultSet, args);
if (result instanceof String
- && (method.getName().equals("getObject")
- || method.getName().equals("getString"))) {
+ && isMethodNameValid(method.getName())) {
result = ((String) result).trim();
}
return result;
}
+ private boolean isMethodNameValid(String name) {
Review Comment:
Still not needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]