@@ -21,23 +21,23 @@ #import "OFHash.h" #import "OFNotImplementedException.h" @implementation OFHashAlreadyCalculatedException -+ newWithClass: (Class)class_ - hash: (OFHash*)hash ++ exceptionWithClass: (Class)class_ + hash: (OFHash*)hash { - return [[self alloc] initWithClass: class_ - hash: hash]; + return [[[self alloc] initWithClass: class_ + hash: hash] autorelease]; } - initWithClass: (Class)class_ { Class c = isa; [self release]; - @throw [OFNotImplementedException newWithClass: c - selector: _cmd]; + @throw [OFNotImplementedException exceptionWithClass: c + selector: _cmd]; } - initWithClass: (Class)class_ hash: (OFHash*)hash {