Skip to content

Commit

Permalink
Correct return value of eDO class request to be nullable.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 375823145
  • Loading branch information
AlbertWang0116 authored and mobile-devx-github-bot committed May 25, 2021
1 parent 90f4589 commit 3afaeda
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Service/Sources/EDOClientService.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ EDOClientErrorHandler EDOSetClientErrorHandler(EDOClientErrorHandler _Nullable e
* @param hostPort The host port the service is running on.
* @return The remote @c Class object.
*/
+ (Class)classObjectWithName:(NSString *)className hostPort:(EDOHostPort *)hostPort;
+ (nullable Class)classObjectWithName:(NSString *)className hostPort:(EDOHostPort *)hostPort;

- (instancetype)init NS_UNAVAILABLE;

Expand All @@ -85,11 +85,10 @@ EDOClientErrorHandler EDOSetClientErrorHandler(EDOClientErrorHandler _Nullable e
+ (ObjectType)rootObjectWithServiceName:(NSString *)serviceName;

/** Retrieve the class object from the given host port of a service. */
+ (Class)classObjectWithName:(NSString *)className port:(UInt16)port;
+ (nullable Class)classObjectWithName:(NSString *)className port:(UInt16)port;

/** Retrieve the class object from the given host port of and name of a service. */
+ (Class)classObjectWithName:(NSString *)className
serviceName:(NSString *)serviceName;
+ (nullable Class)classObjectWithName:(NSString *)className serviceName:(NSString *)serviceName;

@end

Expand Down

0 comments on commit 3afaeda

Please sign in to comment.