Skip to content

Commit

Permalink
Fix #1963.
Browse files Browse the repository at this point in the history
  • Loading branch information
tombentley committed Mar 3, 2015
1 parent 11e7f8c commit c4bf478
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -3093,7 +3093,8 @@ private AttributeDefinitionBuilder makeGetter(Tree.AttributeDeclaration decl, bo
String attrName = decl.getIdentifier().getText();
AttributeDefinitionBuilder getter = AttributeDefinitionBuilder
.getter(this, attrName, decl.getDeclarationModel());
if(!forCompanion)
if(!decl.getDeclarationModel().isInterfaceMember()
|| (decl.getDeclarationModel().isShared() ^ forCompanion))
getter.userAnnotations(expressionGen().transformAnnotations(true, OutputElement.GETTER, decl));
else
getter.ignoreAnnotations();
Expand Down

0 comments on commit c4bf478

Please sign in to comment.