Skip to content

Commit

Permalink
added nonnull to new methods from XMPPTBRAuthentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Canal committed Jul 6, 2016
1 parent 9848a01 commit 8a842f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ - (BOOL)supportsTBRAuthentication{
return [self supportsAuthenticationMechanism:[XMPPTBRAuthentication mechanismName]];
}

- (BOOL)authenticateWithTBR:(NSString *)authToken error:(NSError **)errPtr {
- (BOOL)authenticateWithTBR:(nonnull NSString *)authToken error:(NSError **)errPtr {

__block BOOL result = YES;
__block NSError *err = nil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@

@interface XMPPTBRAuthentication : NSObject <XMPPSASLAuthentication>

- (id)initWithStream:(XMPPStream *)stream token:(NSString *)aToken;
- (nonnull instancetype)initWithStream:(nonnull XMPPStream *)stream token:(nonnull NSString *)aToken;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ + (NSString *)mechanismName {
return @"X-OAUTH";
}

- (id)initWithStream:(XMPPStream *)stream password:(NSString *)password {
- (id)initWithStream:(nonnull XMPPStream *)stream password:(nonnull NSString *)password {
return [super init];
}

- (id)initWithStream:(XMPPStream *)stream token:(NSString *)aToken {
- (id)initWithStream:(nonnull XMPPStream *)stream token:(nonnull NSString *)aToken {
if( self = [super init]) {
xmppStream = stream;
authToken = aToken;
Expand Down

0 comments on commit 8a842f4

Please sign in to comment.