From 3afaeda34eedf9aa833c56a499a0949881371b3a Mon Sep 17 00:00:00 2001 From: Albert Wang Date: Tue, 25 May 2021 16:40:38 -0700 Subject: [PATCH] Correct return value of eDO class request to be nullable. PiperOrigin-RevId: 375823145 --- Service/Sources/EDOClientService.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Service/Sources/EDOClientService.h b/Service/Sources/EDOClientService.h index f7199d3..7393068 100644 --- a/Service/Sources/EDOClientService.h +++ b/Service/Sources/EDOClientService.h @@ -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; @@ -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