Skip to content

Conversation

@blindpirate
Copy link
Contributor

Found some bad code when running analysis.

Expression right = transformInlineConstants(be.getRightExpression(), targetType);
if (left instanceof ConstantExpression && right instanceof ConstantExpression) {
return configure(be, new ConstantExpression((String) ((ConstantExpression) left).getValue() + ((ConstantExpression) right).getValue()));
return configure(be, new ConstantExpression(((ConstantExpression) left).getValue() + ((ConstantExpression) right).getValue()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may cause compilation error ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, you're so fast.

@daniellansun daniellansun merged commit 1e03566 into apache:master Jan 16, 2020
@daniellansun
Copy link
Contributor

Merged. Thanks.

@T45K T45K mentioned this pull request Sep 24, 2021
paulk-asert added a commit that referenced this pull request Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants