Closed Feng-Jay closed 1 year ago
Hi @Feng-Jay !
This is a case where the original gumtree algorithm is too aggressive when searching for mappings in the recovery phase.
I recommend you to use the new simple gumtree algorithm which has a good trade off between speed and accuracy: Matcher defaultMatcher = new CompositeMatchers.SimpleGumTree();
. Cheers!
Hi, I'm using GTD3.0.0 on macOS to analyze Java codes.
When I tried to get modification between simple examples, I find the output somewhat redundant:
My diff codes are like this:
Here are two examples:
Clearly, the example2 changes the class name and replace
int x1 = add(x,x);
withint x2 = 0;
The output actions are correct, but I think there are too many delete-node to handle in my application:
Whether can I simplify these delete-node actions to only:
I notice you mentioned
-m gumtree-simple
in issue#264 how can I use it in java codes?By the way, I wonder where can I get the doc of these APIs, it seems no javadoc in my IDEA Editor.