defects4j-dissection
defects4j-dissection copied to clipboard
some patterns seem to overlap with other patterns.
For example, given the diff result of two java file /b_OrganizeImportsOperation.java and f_OrganizeImportsOperation.java.
32d31
< import org.eclipse.core.resources.ResourcesPlugin;
557c556
< return ResourcesPlugin.getWorkspace().getRoot();
---
> return fCompilationUnit.getResource();
What the pattern of this bug? That is, mcRepl(Method call replacement) and retExpChange (Return expression modification) , which one is better?
Thanks!
Hi @zqudm, There is no better, since both repair actions apply in this case. In fact, you will see similar situations in many bugs. Best regards!