Fix duplicate comments about transitive access wideners. Fixes #544
A more sophisticated fix might be nice, but im not sure it will provide a lot of benefit.
This commit is contained in:
parent
7b28d61fab
commit
60c908ea1b
1 changed files with 6 additions and 1 deletions
|
@ -139,7 +139,12 @@ public final class TransitiveAccessWidenerMappingsProcessor {
|
|||
comment += "\n";
|
||||
}
|
||||
|
||||
comment += "Access widened by %s to %s".formatted(modId(), access);
|
||||
String awComment = "Access widened by %s to %s".formatted(modId(), access);
|
||||
|
||||
if (!comment.contains(awComment)) {
|
||||
// Ensure we don't comment the same thing twice. A bit of a cheap way to do this, but should work ok.
|
||||
comment += awComment;
|
||||
}
|
||||
|
||||
return comment;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue