@@ -22,12 +22,12 @@ #import "OFDataArray.h" #import "OFInvalidArgumentException.h" @interface OFNull () -- (OFString*)OF_JSONRepresentationWithOptions: (int)options - depth: (size_t)depth; +- (OFString *)OF_JSONRepresentationWithOptions: (int)options + depth: (size_t)depth; @end static OFNull *null = nil; @implementation OFNull @@ -34,16 +34,16 @@ + (void)initialize { null = [[self alloc] init]; } -+ (OFNull*)null ++ (OFNull *)null { return null; } -- initWithSerialization: (OFXMLElement*)element +- initWithSerialization: (OFXMLElement *)element { void *pool; [self release]; @@ -56,21 +56,21 @@ objc_autoreleasePoolPop(pool); return [OFNull null]; } -- (OFString*)description +- (OFString *)description { return @""; } - copy { return self; } -- (OFXMLElement*)XMLElementBySerializing +- (OFXMLElement *)XMLElementBySerializing { void *pool = objc_autoreleasePoolPush(); OFXMLElement *element; element = [OFXMLElement elementWithName: [self className] @@ -81,29 +81,29 @@ objc_autoreleasePoolPop(pool); return [element autorelease]; } -- (OFString*)JSONRepresentation +- (OFString *)JSONRepresentation { return [self OF_JSONRepresentationWithOptions: 0 depth: 0]; } -- (OFString*)JSONRepresentationWithOptions: (int)options +- (OFString *)JSONRepresentationWithOptions: (int)options { return [self OF_JSONRepresentationWithOptions: options depth: 0]; } -- (OFString*)OF_JSONRepresentationWithOptions: (int)options +- (OFString *)OF_JSONRepresentationWithOptions: (int)options depth: (size_t)depth { return @"null"; } -- (OFDataArray*)messagePackRepresentation +- (OFDataArray *)messagePackRepresentation { OFDataArray *data = [OFDataArray dataArrayWithItemSize: 1 capacity: 1]; uint8_t type = 0xC0;