Skip to content

Commit

Permalink
making non-final fields in interfaces possible
Browse files Browse the repository at this point in the history
  • Loading branch information
mattulbrich committed Dec 21, 2024
1 parent d99efd2 commit 08b0083
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ private void transformFieldDecl(TextualJMLFieldDecl decl, Comment[] originalComm
public boolean isStatic() {
return false;
}

@Override
public boolean isFinal() {
return ((FieldDeclaration) old).getModifiers().contains(JMLModifier.FINAL);
}
};
fieldDecl.setStartPosition(old.getStartPosition());
fieldDecl.setEndPosition(old.getEndPosition());
Expand Down

0 comments on commit 08b0083

Please sign in to comment.