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