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 2022/04/13 20:01:56 UTC

[GitHub] [commons-ognl] arturobernalg commented on a diff in pull request #48: Simplify conditions.

arturobernalg commented on code in PR #48:
URL: https://github.com/apache/commons-ognl/pull/48#discussion_r849847105


##########
src/main/java/org/apache/commons/ognl/enhance/ExpressionCompiler.java:
##########
@@ -157,7 +157,7 @@ public static String getRootExpression( Node expression, Object root, OgnlContex
 
             Class<?> castClass = OgnlRuntime.getCompiler( context ).getRootExpressionClass( expression, context );
 
-            if ( castClass.isArray() || expression instanceof ASTRootVarRef || expression instanceof ASTThisVarRef)

Review Comment:
   reverted.



-- 
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: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org