pouryafard75 / RM-ASTDiff

MIT License
2 stars 1 forks source link

Conditional expression matching #43

Closed tsantalis closed 1 year ago

tsantalis commented 1 year ago

https://github.com/apache/commons-lang/commit/5111ae7db08a70323a51a21df0bbaf46f21e072e

In all buffer.append() statements, the then part of the conditional expression is matched with the else part and vice versa.

Screenshot from 2023-03-01 19-05-14

pouryafard75 commented 1 year ago

Proof of fix:

image
pouryafard75 commented 1 year ago

Tree matching test added for this case in https://github.com/pouryafard75/RM-ASTDiff/commit/7f919e6e80ba052ec8d1db60ad884e4ea2009357