Skip to content

Commit

Permalink
fix: use extended modifiers (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWitt committed Oct 31, 2022
1 parent d46079e commit 5cb8278
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public void refactor(ChangeListener listener, CtType<?> type) {
if (!hasModifier(ctModifierHandler, modifier)) {
continue;
}
var modifiers = new HashSet<>(ctModifierHandler.getModifiers());
modifiers.removeIf(v -> v.toString().equals(modifier.toLowerCase()));
ctModifierHandler.setModifiers(modifiers);
var modifiers = new HashSet<>(ctModifierHandler.getExtendedModifiers());
modifiers.removeIf(v -> v.getKind().toString().equalsIgnoreCase(modifier));
ctModifierHandler.setExtendedModifiers(modifiers);
listener.setChanged(
type.getTopLevelType(),
new Change(
Expand Down

0 comments on commit 5cb8278

Please sign in to comment.