diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2016-09-19 19:39:39 -0700 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2016-09-19 19:39:39 -0700 |
commit | a18c482084a4f05ac61914bcdc88b8bbe4ea55c1 (patch) | |
tree | c0164f808461e1278fe76e11aef3efb3d0093618 /SmartDeviceLink/SDLDebugTool.m | |
parent | e6e84cc8c23609ab286c64a2c6a3037313f29908 (diff) | |
download | sdl_ios-a18c482084a4f05ac61914bcdc88b8bbe4ea55c1.tar.gz |
Updated to include generics for all collection objects.
Diffstat (limited to 'SmartDeviceLink/SDLDebugTool.m')
-rw-r--r-- | SmartDeviceLink/SDLDebugTool.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/SmartDeviceLink/SDLDebugTool.m b/SmartDeviceLink/SDLDebugTool.m index 8bf8c7bda..3f1691fa6 100644 --- a/SmartDeviceLink/SDLDebugTool.m +++ b/SmartDeviceLink/SDLDebugTool.m @@ -12,7 +12,7 @@ @property (nonatomic, assign) BOOL enabled; @property (nonatomic, assign) BOOL debugToLogFile; -@property (nonatomic, strong) NSMutableDictionary *namedConsoleSets; +@property (nonatomic, strong) NSMutableDictionary<NSString *, NSMutableSet<NSObject<SDLDebugToolConsole> *> *> *namedConsoleSets; @property (nonatomic, strong) NSDateFormatter *logDateFormatter; @property (nonatomic, strong) NSFileHandle *logFileHandle; @property (nonatomic, strong) dispatch_queue_t logQueue; @@ -89,11 +89,11 @@ [[SDLDebugTool getConsoleListenersForGroup:groupName] removeObject:console]; } -+ (NSMutableSet *)getConsoleListenersForGroup:(NSString *)groupName { ++ (NSMutableSet<NSObject<SDLDebugToolConsole> *> *)getConsoleListenersForGroup:(NSString *)groupName { return [[self sharedTool] sdl_getConsoleListenersForGroup:groupName]; } -- (NSMutableSet *)sdl_getConsoleListenersForGroup:(NSString *)groupName { +- (NSMutableSet<NSObject<SDLDebugToolConsole> *> *)sdl_getConsoleListenersForGroup:(NSString *)groupName { return [self.namedConsoleSets valueForKey:groupName]; } @@ -161,7 +161,7 @@ //Output To DebugToolConsoles if ((output & SDLDebugOutput_DebugToolConsole) == SDLDebugOutput_DebugToolConsole) { - NSSet *consoleListeners = [self getConsoleListenersForGroup:consoleGroupName]; + NSSet<NSObject<SDLDebugToolConsole> *> *consoleListeners = [self getConsoleListenersForGroup:consoleGroupName]; for (NSObject<SDLDebugToolConsole> *console in consoleListeners) { [console logInfo:outputString]; } @@ -190,7 +190,7 @@ self.debugToLogFile = YES; //Delete Log File If It Exists - NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); + NSArray<NSString *> *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"smartdevicelink.log"]; |