Skip to content

Commit 29f231c

Browse files
committed
Interface refactoring: removed nullability from attempts property of EDQueueStorageItem protocol (and EDQueueStorageEngineJob respectively), blocked +new method from EDQueueJob ^^,
1 parent 22aac2c commit 29f231c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

EDQueue/EDQueue.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// EDQueue.m
33
// queue
44
//

EDQueue/EDQueueJob.h

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ static NSTimeInterval const EDQueueJobDefaultRetryTimeInterval = 15.0;
2626
userInfo:(nullable NSDictionary<id<NSCoding>, id<NSCoding>> *)userInfo;
2727

2828
- (instancetype)init NS_UNAVAILABLE;
29+
+ (instancetype)new NS_UNAVAILABLE;
2930

3031
@end
3132

EDQueue/EDQueuePersistentStorageProtocol.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
1818
@property(nonatomic, readonly) EDQueueJob *job;
1919

2020
@property(nonatomic, readonly, nullable) NSNumber *jobID;
21-
@property(nonatomic, readonly, nullable) NSNumber *attempts;
21+
@property(nonatomic, readonly) NSNumber *attempts;
2222

2323
@end
2424

EDQueue/EDQueueStorageEngine.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ @interface EDQueueStorageEngineJob : NSObject<EDQueueStorageItem>
3535
- (instancetype)initWithTag:(NSString *)tag
3636
userInfo:(nullable NSDictionary<id<NSCoding>, id<NSCoding>> *)userInfo
3737
jobID:(nullable NSNumber *)jobID
38-
atempts:(nullable NSNumber *)attemps;
38+
atempts:(NSNumber *)attemps;
3939

4040
@end
4141

@@ -48,7 +48,7 @@ @implementation EDQueueStorageEngineJob
4848
- (instancetype)initWithTag:(NSString *)tag
4949
userInfo:(nullable NSDictionary<id<NSCoding>, id<NSCoding>> *)userInfo
5050
jobID:(nullable NSNumber *)jobID
51-
atempts:(nullable NSNumber *)attemps
51+
atempts:(NSNumber *)attemps
5252
{
5353
self = [super init];
5454

0 commit comments

Comments
 (0)