Skip to content

Commit

Permalink
Merge pull request #363 from mbabin/nullableRelationshipPrimitiveAcce…
Browse files Browse the repository at this point in the history
…ssors

Nullability annotations for generated primitive accessors. Thanks!
  • Loading branch information
atomicbird authored Jul 22, 2018
2 parents fc2a15b + 91f54c9 commit c14efdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/machine.h.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ NS_ASSUME_NONNULL_BEGIN
- (<$Relationship.mutableCollectionClassName$>*)primitive<$Relationship.name.initialCapitalString$>;
- (void)setPrimitive<$Relationship.name.initialCapitalString$>:(<$Relationship.mutableCollectionClassName$>*)value;
<$else$>
- (<$Relationship.destinationEntity.managedObjectClassName$>*)primitive<$Relationship.name.initialCapitalString$>;
- (void)setPrimitive<$Relationship.name.initialCapitalString$>:(<$Relationship.destinationEntity.managedObjectClassName$>*)value;
- (<$if Relationship.optional$>nullable <$endif$><$Relationship.destinationEntity.managedObjectClassName$>*)primitive<$Relationship.name.initialCapitalString$>;
- (void)setPrimitive<$Relationship.name.initialCapitalString$>:(<$if Relationship.optional$>nullable <$endif$><$Relationship.destinationEntity.managedObjectClassName$>*)value;
<$endif$>
<$endforeach do$>
@end
Expand Down

0 comments on commit c14efdd

Please sign in to comment.