Skip to content

Conversation

zachyee
Copy link

@zachyee zachyee commented Aug 30, 2016

@maciejgrzybek
Copy link

from optimizer is not necessary in commit msg.
What about Add remove identity casts rewriter?
Commit msgs guidelines: http://chris.beams.io/posts/git-commit/

@maciejgrzybek maciejgrzybek self-assigned this Aug 30, 2016

Choose a reason for hiding this comment

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

requireNonNull

@maciejgrzybek
Copy link

Back to you, @zachyee.

@zachyee
Copy link
Author

zachyee commented Aug 30, 2016

I addressed the easy-to-fix comments. I responded with some info on the harder-to-fix comments to figure out what would be best before trying to address them. @maciejgrzybek

Choose a reason for hiding this comment

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

I don't like this name. As it is a plan. Maybe assertPlanDoesNotMatch

Choose a reason for hiding this comment

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

It is a expression tree and you check only the root of it.

Copy link

Choose a reason for hiding this comment

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

I think you should use ExpressionVerifier here and compare expected expression vs actual one.

@zachyee zachyee force-pushed the remove_identity_casts branch from e5507b9 to 970cf51 Compare August 31, 2016 21:19
Copy link

@kokosing kokosing Sep 1, 2016

Choose a reason for hiding this comment

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

IMO interface here is an over engineering. I would prefer abstract class with below methods implemented.

Choose a reason for hiding this comment

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

Why this iface is needed at all?

@zachyee zachyee force-pushed the remove_identity_casts branch from 970cf51 to ed8b85d Compare September 2, 2016 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants