XenoAmess commented on a change in pull request #25:
URL: https://github.com/apache/commons-beanutils/pull/25#discussion_r432844680



##########
File path: 
src/main/java/org/apache/commons/beanutils2/converters/NumberConverter.java
##########
@@ -243,17 +243,17 @@ protected String convertToString(final Object value) 
throws Throwable {
 
         // Handle Boolean
         if (value instanceof Boolean) {
-            return toNumber(sourceType, targetType, 
((Boolean)value).booleanValue() ? ONE : ZERO);
+            return toNumber(sourceType, targetType, (Boolean) value ? ONE : 
ZERO);

Review comment:
       done.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to