@@ -18,10 +18,12 @@ #ifndef OF_HAVE_THREADS # error No threads available! #endif +OF_ASSUME_NONNULL_BEGIN + @class OFCondition; /*! * @class OFConditionWaitFailedException \ * OFConditionWaitFailedException.h \ @@ -35,23 +37,25 @@ } /*! * The condition for which could not be waited. */ -@property (readonly, nonatomic) OFCondition *condition; +@property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFCondition *condition; /*! * @brief Creates a new, autoreleased condition wait failed exception. * * @param condition The condition for which could not be waited * @return A new, autoreleased condition wait failed exception */ -+ (instancetype)exceptionWithCondition: (OFCondition*)condition; ++ (instancetype)exceptionWithCondition: (nullable OFCondition*)condition; /*! * @brief Initializes an already allocated condition wait failed exception. * * @param condition The condition for which could not be waited * @return An initialized condition wait failed exception */ -- initWithCondition: (OFCondition*)condition; +- initWithCondition: (nullable OFCondition*)condition; @end + +OF_ASSUME_NONNULL_END