From d853414ba3dbff6a87255cb5945c616e861355e6 Mon Sep 17 00:00:00 2001 From: markb74 <57717302+markb74@users.noreply.github.com> Date: Tue, 18 Jan 2022 18:22:59 +0100 Subject: [PATCH] Update javadoc for AndroidComponentAddress. (#8725) Be more explicit that "packagename" is the application package name. --- .../java/io/grpc/binder/AndroidComponentAddress.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/binder/src/main/java/io/grpc/binder/AndroidComponentAddress.java b/binder/src/main/java/io/grpc/binder/AndroidComponentAddress.java index c37ba457b2..4809a2db43 100644 --- a/binder/src/main/java/io/grpc/binder/AndroidComponentAddress.java +++ b/binder/src/main/java/io/grpc/binder/AndroidComponentAddress.java @@ -69,11 +69,15 @@ public class AndroidComponentAddress extends SocketAddress { // NOTE: Only tempo } /** - * Creates an address referencing a {@link android.app.Service} (potentially) in another + * Creates an address referencing a {@link android.app.Service} in another * application and using the default binding {@link Intent}. + * + * @param applicationPackage The package name of the application containing the server. + * @param serviceClassName The full class name of the Android Service to bind to. */ - public static AndroidComponentAddress forRemoteComponent(String packageName, String className) { - return forComponent(new ComponentName(packageName, className)); + public static AndroidComponentAddress forRemoteComponent( + String applicationPackage, String serviceClassName) { + return forComponent(new ComponentName(applicationPackage, serviceClassName)); } /**