You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2021/06/22 19:21:30 UTC

[GitHub] [commons-ognl] arturobernalg commented on a change in pull request #46: Minor Changes:

arturobernalg commented on a change in pull request #46:
URL: https://github.com/apache/commons-ognl/pull/46#discussion_r656510207



##########
File path: src/main/java/org/apache/commons/ognl/ASTAdd.java
##########
@@ -129,13 +129,6 @@ boolean isWider( NodeType type, NodeType lastType )
         {
             return false;
         }
-
-        if ( Float.class.isAssignableFrom( type.getGetterClass() )
-            && Integer.class.isAssignableFrom( lastType.getGetterClass() ) )
-        {
-            return true;
-        }

Review comment:
       > Why did you remove this?
   
   Hi. @lukaszlenart 
   If the code get there, always will return true
   
   
    ```
    if ( Float.class.isAssignableFrom( type.getGetterClass() )
               && Integer.class.isAssignableFrom( lastType.getGetterClass() ) )
           {
               return true;
           }
   
           return true;
   ```




-- 
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:
users@infra.apache.org