Skip to content

Commit aafa682

Browse files
authored
Merge branch 'master' into keep-alive
2 parents c005d72 + 2ee4f9b commit aafa682

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

binder/src/main/java/io/grpc/binder/AndroidComponentAddress.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.");

binder/src/main/java/io/grpc/binder/ApiConstants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

binder/src/main/java/io/grpc/binder/internal/BinderTransport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)