diff --git a/MJExtension.podspec b/MJExtension.podspec index d7b49627..de57767a 100644 --- a/MJExtension.podspec +++ b/MJExtension.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "MJExtension" - s.version = "3.0.12" + s.version = "3.0.13" s.ios.deployment_target = '6.0' s.osx.deployment_target = '10.8' s.summary = "A fast and convenient conversion between JSON and model" diff --git a/MJExtension/MJProperty.m b/MJExtension/MJProperty.m index 2489d9a5..96710faf 100644 --- a/MJExtension/MJProperty.m +++ b/MJExtension/MJProperty.m @@ -18,21 +18,14 @@ @interface MJProperty() @implementation MJProperty -#pragma mark - 懒加载 -- (NSMutableDictionary *)propertyKeysDict +#pragma mark - 初始化 +- (instancetype)init { - if (!_propertyKeysDict) { + if (self = [super init]) { _propertyKeysDict = [NSMutableDictionary dictionary]; - } - return _propertyKeysDict; -} - -- (NSMutableDictionary *)objectClassInArrayDict -{ - if (!_objectClassInArrayDict) { _objectClassInArrayDict = [NSMutableDictionary dictionary]; } - return _objectClassInArrayDict; + return self; } #pragma mark - 缓存 diff --git a/MJExtension/NSObject+MJProperty.m b/MJExtension/NSObject+MJProperty.m index 2314c460..c9aff546 100644 --- a/MJExtension/NSObject+MJProperty.m +++ b/MJExtension/NSObject+MJProperty.m @@ -163,13 +163,8 @@ + (NSMutableArray *)properties // 2.遍历每一个成员变量 for (unsigned int i = 0; i