Skip to content

Commit 8274114

Browse files
thomasvlcopybara-github
authored andcommitted
ObjC: Block Roots from being created.
It has never made sense to create instances (all methods are class methods), just overlooked catching it at compile time until now. PiperOrigin-RevId: 891804535
1 parent 62d1902 commit 8274114

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

objectivec/GPBRootObject.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ NS_ASSUME_NONNULL_BEGIN
1818
**/
1919
@interface GPBRootObject : NSObject
2020

21+
- (instancetype)init NS_UNAVAILABLE;
22+
+ (instancetype)new NS_UNAVAILABLE;
23+
2124
/**
2225
* @return An extension registry for the given file and all the files it depends
2326
* on.

0 commit comments

Comments
 (0)