File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -135,8 +135,10 @@ + (Class)propertyObjectClassInArray:(NSString *)propertyName
135
135
+ (void )mj_enumerateProperties : (MJPropertiesEnumeration)enumeration
136
136
{
137
137
// 获得成员变量
138
+ MJExtensionSemaphoreCreate
139
+ MJExtensionSemaphoreWait
138
140
NSArray *cachedProperties = [self properties ];
139
-
141
+ MJExtensionSemaphoreSignal
140
142
// 遍历成员变量
141
143
BOOL stop = NO ;
142
144
for (MJProperty *property in cachedProperties) {
@@ -149,11 +151,8 @@ + (void)mj_enumerateProperties:(MJPropertiesEnumeration)enumeration
149
151
+ (NSMutableArray *)properties
150
152
{
151
153
NSMutableArray *cachedProperties = [self propertyDictForKey: &MJCachedPropertiesKey][NSStringFromClass (self )];
152
-
153
154
if (cachedProperties == nil ) {
154
- MJExtensionSemaphoreCreate
155
- MJExtensionSemaphoreWait
156
-
155
+
157
156
if (cachedProperties == nil ) {
158
157
cachedProperties = [NSMutableArray array ];
159
158
@@ -179,8 +178,6 @@ + (NSMutableArray *)properties
179
178
180
179
[self propertyDictForKey: &MJCachedPropertiesKey][NSStringFromClass (self )] = cachedProperties;
181
180
}
182
-
183
- MJExtensionSemaphoreSignal
184
181
}
185
182
186
183
return cachedProperties;
You can’t perform that action at this time.
0 commit comments