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:
S-trace
2020-01-03 03:46:30 +03:00
committed by Soul Trace
parent 610f531653
commit c72f2a2c96
@@ -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;