core: RenameReasonAttr: Do not append new reason if it is already there
Fixes possible "reason: invalid class name and invalid class name" comments after class refresh.
This commit is contained in:
@@ -46,7 +46,7 @@ public class RenameReasonAttr implements IAttribute {
|
||||
public RenameReasonAttr append(String reason) {
|
||||
if (description.isEmpty()) {
|
||||
description += reason;
|
||||
} else {
|
||||
} else if (!description.contains(reason)) {
|
||||
description += " and " + reason;
|
||||
}
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user