@@ -15,10 +15,12 @@ */ #import "OFException.h" #import "OFLocking.h" +OF_ASSUME_NONNULL_BEGIN + /*! * @class OFUnlockFailedException \ * OFUnlockFailedException.h ObjFW/OFUnlockFailedException.h * * @brief An exception indicating that unlocking a lock failed. @@ -29,23 +31,25 @@ } /*! * The lock which could not be unlocked. */ -@property (readonly, nonatomic) id lock; +@property OF_NULLABLE_PROPERTY (readonly, nonatomic) id lock; /*! * @brief Creates a new, autoreleased unlock failed exception. * * @param lock The lock which could not be unlocked * @return A new, autoreleased unlock failed exception */ -+ (instancetype)exceptionWithLock: (id )lock; ++ (instancetype)exceptionWithLock: (nullable id )lock; /*! * @brief Initializes an already allocated unlock failed exception. * * @param lock The lock which could not be unlocked * @return An initialized unlock failed exception */ -- initWithLock: (id )lock; +- initWithLock: (nullable id )lock; @end + +OF_ASSUME_NONNULL_END