Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed generics declarations for collection subclasses. #2938

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/Foundation/NSCountedSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
@class NSEnumerator;

FOUNDATION_EXPORT_CLASS
@interface NSCountedSet : NSMutableSet <NSCopying, NSFastEnumeration, NSMutableCopying, NSSecureCoding>
- (NSUInteger)countForObject:(id)anObject;
@interface NSCountedSet <ObjectType> : NSMutableSet <ObjectType>
- (NSUInteger)countForObject:(ObjectType)anObject;
@end
2 changes: 1 addition & 1 deletion include/Foundation/NSMutableArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@class NSSortDescriptor;

FOUNDATION_EXPORT_CLASS
@interface NSMutableArray <ObjectType> : NSArray <NSCopying, NSFastEnumeration, NSMutableCopying, NSSecureCoding>
@interface NSMutableArray <ObjectType> : NSArray <ObjectType>
+ (instancetype)arrayWithCapacity:(NSUInteger)numItems;
- (instancetype)initWithCapacity:(NSUInteger)numItems;
- (void)addObject:(ObjectType)anObject;
Expand Down
2 changes: 1 addition & 1 deletion include/Foundation/NSMutableDictionary.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@class NSArray<ObjectType>;

FOUNDATION_EXPORT_CLASS
@interface NSMutableDictionary <KeyType, ObjectType> : NSDictionary <NSCopying, NSFastEnumeration, NSMutableCopying, NSSecureCoding>
@interface NSMutableDictionary <KeyType, ObjectType> : NSDictionary <KeyType, ObjectType>
+ (instancetype)dictionaryWithCapacity:(NSUInteger)numItems;
- (instancetype)initWithCapacity:(NSUInteger)numItems;
+ (NSMutableDictionary*)dictionaryWithSharedKeySet:(id)keyset;
Expand Down
2 changes: 1 addition & 1 deletion include/Foundation/NSMutableIndexSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#import <Foundation/NSIndexSet.h>

FOUNDATION_EXPORT_CLASS
@interface NSMutableIndexSet : NSIndexSet <NSCopying, NSMutableCopying, NSSecureCoding>
@interface NSMutableIndexSet : NSIndexSet
- (void)addIndex:(NSUInteger)index;
- (void)addIndexes:(NSIndexSet*)indexSet;
- (void)addIndexesInRange:(NSRange)indexRange;
Expand Down
2 changes: 1 addition & 1 deletion include/Foundation/NSMutableOrderedSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
@class NSSet<ObjectType>;

FOUNDATION_EXPORT_CLASS
@interface NSMutableOrderedSet <ObjectType> : NSOrderedSet <NSCopying, NSFastEnumeration, NSMutableCopying, NSSecureCoding>
@interface NSMutableOrderedSet <ObjectType> : NSOrderedSet <ObjectType>
+(instancetype)orderedSetWithCapacity : (NSUInteger)numItems STUB_METHOD;
- (instancetype)initWithCapacity:(NSUInteger)numItems STUB_METHOD;
- (instancetype)init;
Expand Down
2 changes: 1 addition & 1 deletion include/Foundation/NSMutableSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@class NSArray<ObjectType>;

FOUNDATION_EXPORT_CLASS
@interface NSMutableSet <ObjectType> : NSSet <NSCopying, NSFastEnumeration, NSMutableCopying, NSSecureCoding>
@interface NSMutableSet <ObjectType> : NSSet <ObjectType>
+ (instancetype)setWithCapacity:(NSUInteger)numItems;
- (instancetype)initWithCapacity:(NSUInteger)numItems;
- (void)addObject:(ObjectType)object;
Expand Down