mirror of https://github.com/grpc/grpc-java.git
AndroidComponentAddress constructor can be private. (#12188)
This commit is contained in:
parent
74aee11389
commit
2ee4f9b488
|
@ -58,7 +58,7 @@ public final class AndroidComponentAddress extends SocketAddress {
|
|||
@Nullable
|
||||
private final UserHandle targetUser; // null means the same user that hosts this process.
|
||||
|
||||
protected AndroidComponentAddress(Intent bindIntent, @Nullable UserHandle targetUser) {
|
||||
private AndroidComponentAddress(Intent bindIntent, @Nullable UserHandle targetUser) {
|
||||
checkArgument(
|
||||
bindIntent.getComponent() != null || bindIntent.getPackage() != null,
|
||||
"'bindIntent' must be explicit. Specify either a package or ComponentName.");
|
||||
|
|
Loading…
Reference in New Issue