mbenson/therian

Should TherianContext:L133 use Validate.validState(opOnPop.equals(operation)) ?

Closed this issue · 2 comments

Hi again Matt,

Should this

Validate.validState(opOnPop == operation,

Be replaced by this?

Validate.validState(opOnPop.equals(operation),

Just going through some static analysis in therian, and the tool spotted this.

Cheers, -B

I don't think so; I just do things like this to make sure I'm tracking stack state as expected, and in this case I would expect the same instance. Does that make sense?

Yeah, it does. I didn't read the code very well, and couldn't find another way to add a comment with the question, that's why I filled this issue :-) closing now, thanks Matt.