Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
lahodaj committed Feb 4, 2025
1 parent c9ba480 commit d87c35c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2525,7 +2525,7 @@ public ModifiersTree removeModifiersModifier(ModifiersTree modifiers, Modifier m
case SEALED: c = c & ~Flags.SEALED; break;
case NON_SEALED: c = c & ~Flags.NON_SEALED; break;
default:
break;
throw new IllegalStateException("Unsupported modifier: " + modifier);
}
return Modifiers(c, modifiers.getAnnotations());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,8 @@ public static long modifiersToFlags(Set<Modifier> flagset) {
case NATIVE: flags |= Flags.NATIVE; break;
case STRICTFP: flags |= Flags.STRICTFP; break;
case DEFAULT: flags |= Flags.DEFAULT; break;
case SEALED: flags |= Flags.SEALED; break; //TODO: tested by CodeGeneratorTest
case NON_SEALED: flags |= Flags.NON_SEALED; break; //TODO: untested
case SEALED: flags |= Flags.SEALED; break;
case NON_SEALED: flags |= Flags.NON_SEALED; break;
default:
throw new AssertionError("Unknown Modifier: " + mod); //NOI18N
}
Expand Down

0 comments on commit d87c35c

Please sign in to comment.