@@ -18,10 +18,12 @@ #import "OFInvalidJSONException.h" #import "OFString.h" @implementation OFInvalidJSONException +@synthesize string = _string, line = _line; + + (instancetype)exceptionWithString: (OFString*)string line: (size_t)line { return [[[self alloc] initWithString: string line: line] autorelease]; @@ -58,16 +60,6 @@ - (OFString*)description { return [OFString stringWithFormat: @"The JSON representation is invalid in line %zu!", _line]; } - -- (OFString*)string -{ - OF_GETTER(_string, true) -} - -- (size_t)line -{ - return _line; -} @end