Skip to content

Commit 5826ca6

Browse files
author
shangkun
committed
copy string
1 parent b0f3835 commit 5826ca6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

SKGenerateModelTool.dmg

457 Bytes
Binary file not shown.

SKGenerateModelTool/SKCodeBuilder.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ class SKCodeBuilder: NSObject {
394394
if idValue.count > 12 {
395395
hString.append("/** eg. \(key) */\n@property (nonatomic, copy) NSString *\(key);\n")
396396
} else {
397-
hString.append("/** eg. \(idValue) */\n@property (nonatomic, assign) NSString *\(key);\n")
397+
hString.append("/** eg. \(idValue) */\n@property (nonatomic, copy) NSString *\(key);\n")
398398
}
399399
}
400400

@@ -453,7 +453,6 @@ class SKCodeBuilder: NSObject {
453453
if (needLineBreak) {
454454
mString.append("\n")
455455
}
456-
457456
mString.append("+ (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper\n")
458457
mString.append("{\n return @{\n")
459458
for (key, obj) in self.handlePropertyMapper {

0 commit comments

Comments
 (0)