Skip to content

Commit a60a0a5

Browse files
Updated OPTLYLogger class that contains protocol checker to OPTLYLoggerUtility to avoid confusion.
1 parent 4d1e516 commit a60a0a5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

OptimizelySDKCore/OptimizelySDKCore/OPTLYLogger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ NS_ASSUME_NONNULL_END
7272

7373
@end
7474

75-
@interface OPTLYLogger : NSObject
75+
@interface OPTLYLoggerUtility : NSObject
7676
/**
7777
* Utility method to check if a class conforms to the OPTLYLogger protocol
7878
* This method uses compile and run time checks

OptimizelySDKCore/OptimizelySDKCore/OPTLYLogger.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
NSString *const OPTLYLogLevelDebugTag = @"DEBUG";
2424
NSString *const OPTLYLogLevelVerboseTag = @"VERBOSE";
2525

26-
@implementation OPTLYLogger
26+
@implementation OPTLYLoggerUtility
2727

2828
+ (BOOL)conformsToOPTLYLoggerProtocol:(Class)instanceClass
2929
{

OptimizelySDKCore/OptimizelySDKCoreTests/OPTLYLoggerTest.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ - (void)tearDown {
3636
- (void)testConformsToOPTLYLoggerProtocol
3737
{
3838
id<OPTLYLogger> logger = [NSObject new];
39-
BOOL conformsToProtocol = [OPTLYLogger conformsToOPTLYLoggerProtocol:[logger class]];
39+
BOOL conformsToProtocol = [OPTLYLoggerUtility conformsToOPTLYLoggerProtocol:[logger class]];
4040
NSAssert(conformsToProtocol == FALSE, @"Object does not conform to protocol.");
4141

4242
logger = [OPTLYLoggerDefault new];
43-
conformsToProtocol = [OPTLYLogger conformsToOPTLYLoggerProtocol:[logger class]];
43+
conformsToProtocol = [OPTLYLoggerUtility conformsToOPTLYLoggerProtocol:[logger class]];
4444
NSAssert(conformsToProtocol == TRUE, @"Object should conform to protocol.");
4545
}
4646

0 commit comments

Comments
 (0)