Skip to content

Commit 8e5c446

Browse files
authored
Merge pull request #674 from wolfcon/master
(amend)Change some function name that will be redundant with other SDK
2 parents 61c01ec + 3d459c2 commit 8e5c446

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

MJExtension/NSObject+MJClass.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
@implementation NSObject (MJClass)
2121

22-
+ (NSMutableDictionary *)classDictForKey:(const void *)key
22+
+ (NSMutableDictionary *)mj_classDictForKey:(const void *)key
2323
{
2424
static NSMutableDictionary *allowedPropertyNamesDict;
2525
static NSMutableDictionary *ignoredPropertyNamesDict;
@@ -141,18 +141,18 @@ + (void)mj_setupBlockReturnValue:(id (^)(void))block key:(const char *)key
141141
// 清空数据
142142
MJExtensionSemaphoreCreate
143143
MJExtensionSemaphoreWait
144-
[[self classDictForKey:key] removeAllObjects];
144+
[[self mj_classDictForKey:key] removeAllObjects];
145145
MJExtensionSemaphoreSignal
146146
}
147147

148148
+ (NSMutableArray *)mj_totalObjectsWithSelector:(SEL)selector key:(const char *)key
149149
{
150150
MJExtensionSemaphoreCreate
151151
MJExtensionSemaphoreWait
152-
NSMutableArray *array = [self classDictForKey:key][NSStringFromClass(self)];
152+
NSMutableArray *array = [self mj_classDictForKey:key][NSStringFromClass(self)];
153153
if (array == nil) {
154154
// 创建、存储
155-
[self classDictForKey:key][NSStringFromClass(self)] = array = [NSMutableArray array];
155+
[self mj_classDictForKey:key][NSStringFromClass(self)] = array = [NSMutableArray array];
156156

157157
if ([self respondsToSelector:selector]) {
158158
#pragma clang diagnostic push

0 commit comments

Comments
 (0)