Skip to content

Commit

Permalink
Strip the FINAL flag from all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jordin committed Jan 4, 2020
1 parent b43aaeb commit cf5a440
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ protected void mergeShadowFields(MixinTargetContext mixin) {
if (target != null) {
Annotations.merge(shadow, target);

// Strip the FINAL flag from @Mutable non-private fields
if (entry.getValue().isDecoratedMutable() && !Bytecode.hasFlag(target, Opcodes.ACC_PRIVATE)) {
// Strip the FINAL flag from @Mutable fields
if (entry.getValue().isDecoratedMutable()) {
target.access &= ~Opcodes.ACC_FINAL;
}
}
Expand Down

0 comments on commit cf5a440

Please sign in to comment.