cronet: do not expose setTrafficStats* as public APIs (#6055)

This commit is contained in:
Chengyuan Zhang 2019-08-12 14:42:18 -07:00 committed by GitHub
parent 503696aa9a
commit d2307139c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -136,7 +136,7 @@ public final class CronetChannelBuilder extends
* application.
* @return the builder to facilitate chaining.
*/
public final CronetChannelBuilder setTrafficStatsTag(int tag) {
final CronetChannelBuilder setTrafficStatsTag(int tag) {
trafficStatsTagSet = true;
trafficStatsTag = tag;
return this;
@ -157,7 +157,7 @@ public final class CronetChannelBuilder extends
* @param uid the UID to attribute socket traffic caused by this channel.
* @return the builder to facilitate chaining.
*/
public final CronetChannelBuilder setTrafficStatsUid(int uid) {
final CronetChannelBuilder setTrafficStatsUid(int uid) {
trafficStatsUidSet = true;
trafficStatsUid = uid;
return this;

View File

@ -23,7 +23,10 @@ import io.grpc.Internal;
* team. If you *really* think you need to use this, contact the gRPC team first.
*/
@Internal
public class InternalCronetChannelBuilder {
public final class InternalCronetChannelBuilder {
// Prevent instantiation
private InternalCronetChannelBuilder() {}
/**
* Sets {@link android.net.TrafficStats} tag to use when accounting socket traffic caused by this