File tree Expand file tree Collapse file tree
binder/src/main/java/io/grpc/binder Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public final class AndroidComponentAddress extends SocketAddress {
5858 @ Nullable
5959 private final UserHandle targetUser ; // null means the same user that hosts this process.
6060
61- protected AndroidComponentAddress (Intent bindIntent , @ Nullable UserHandle targetUser ) {
61+ private AndroidComponentAddress (Intent bindIntent , @ Nullable UserHandle targetUser ) {
6262 checkArgument (
6363 bindIntent .getComponent () != null || bindIntent .getPackage () != null ,
6464 "'bindIntent' must be explicit. Specify either a package or ComponentName." );
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ private ApiConstants() {}
4545 * "system app" client with special permissions. See {@link
4646 * AndroidComponentAddress.Builder#setTargetUser(UserHandle)} for details.
4747 */
48+ @ ExperimentalApi ("https://github.com/grpc/grpc-java/issues/10173" )
4849 public static final NameResolver .Args .Key <UserHandle > TARGET_ANDROID_USER =
4950 NameResolver .Args .Key .create ("target-android-user" );
5051
Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ public static final class BinderClientTransport extends BinderTransport
589589 @ GuardedBy ("this" )
590590 @ Nullable private ListenableFuture <Status > authResultFuture ; // null before we check auth.
591591 @ GuardedBy ("this" )
592- private ListenableFuture <Status > preAuthResultFuture ;
592+ @ Nullable private ListenableFuture <Status > preAuthResultFuture ; // null before we check auth.
593593
594594 /**
595595 * Constructs a new transport instance.
@@ -814,7 +814,7 @@ void notifyTerminated() {
814814 readyTimeoutFuture = null ;
815815 }
816816 if (preAuthResultFuture != null ) {
817- preAuthResultFuture .cancel (false );
817+ preAuthResultFuture .cancel (false ); // No effect if already complete.
818818 }
819819 if (authResultFuture != null ) {
820820 authResultFuture .cancel (false ); // No effect if already complete.
You can’t perform that action at this time.
0 commit comments