Skip to content

Commit

Permalink
Fix method rename detection in commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Dec 16, 2024
1 parent 4bdaef0 commit e0c8deb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private boolean argumentizedStringExactAfterTypeReplacement() {
String s2 = fragment2.getArgumentizedString();
for(Replacement r : replacements) {
if(r.getType().equals(ReplacementType.TYPE)) {
if(s1.startsWith(r.getBefore()) && s2.startsWith(r.getAfter())) {
if(s1.contains(r.getBefore()) && s2.contains(r.getAfter())) {
String temp = s2.replace(r.getAfter(), r.getBefore());
if(s1.equals(temp) || (s1 + JAVA.STATEMENT_TERMINATION).equals(temp)) {
return true;
Expand Down

0 comments on commit e0c8deb

Please sign in to comment.