From 1bb1f127cafcbffe6fe5e1b1414c3b660226fe9f Mon Sep 17 00:00:00 2001 From: stlndm Date: Tue, 16 Oct 2018 10:51:51 +0800 Subject: [PATCH] @interface @class command should not be used in a comment attached to a non-interface declaration --- YYModel/NSObject+YYModel.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/YYModel/NSObject+YYModel.h b/YYModel/NSObject+YYModel.h index 73f62ec..0547a39 100644 --- a/YYModel/NSObject+YYModel.h +++ b/YYModel/NSObject+YYModel.h @@ -27,14 +27,14 @@ NS_ASSUME_NONNULL_BEGIN ********************** json convertor ********************* @code - @interface YYAuthor : NSObject + YYAuthor : NSObject @property (nonatomic, strong) NSString *name; @property (nonatomic, assign) NSDate *birthday; @end @implementation YYAuthor @end - @interface YYBook : NSObject + YYBook : NSObject @property (nonatomic, copy) NSString *name; @property (nonatomic, assign) NSUInteger pages; @property (nonatomic, strong) YYAuthor *author; @@ -54,7 +54,7 @@ NS_ASSUME_NONNULL_BEGIN ********************** Coding/Copying/hash/equal ********************* @code - @interface YYShadow :NSObject + YYShadow :NSObject @property (nonatomic, copy) NSString *name; @property (nonatomic, assign) CGSize size; @end @@ -287,7 +287,7 @@ NS_ASSUME_NONNULL_BEGIN model: @code - @interface YYBook : NSObject + YYBook : NSObject @property NSString *name; @property NSInteger page; @property NSString *desc; @@ -317,9 +317,9 @@ NS_ASSUME_NONNULL_BEGIN Example: @code - @class YYShadow, YYBorder, YYAttachment; + YYShadow, YYBorder, YYAttachment; - @interface YYAttributes + YYAttributes @property NSString *name; @property NSArray *shadows; @property NSSet *borders; @@ -349,7 +349,7 @@ NS_ASSUME_NONNULL_BEGIN Example: @code - @class YYCircle, YYRectangle, YYLine; + YYCircle, YYRectangle, YYLine; @implementation YYShape