cronet: cleanup remaining usages of deprecated CallOptions#of(). (#4720)

This commit is contained in:
Grant Oakley 2018-08-01 15:09:50 -07:00 committed by Eric Gribkoff
parent b9d1bb8b8b
commit 6fa2822923
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public final class CronetCallOptions {
*/ */
@Deprecated @Deprecated
public static final CallOptions.Key<Object> CRONET_ANNOTATION_KEY = public static final CallOptions.Key<Object> CRONET_ANNOTATION_KEY =
CallOptions.Key.of("cronet-annotation", null); CallOptions.Key.create("cronet-annotation");
/** /**
* Returns a copy of {@code callOptions} with {@code annotation} included as one of the Cronet * Returns a copy of {@code callOptions} with {@code annotation} included as one of the Cronet
@ -61,5 +61,5 @@ public final class CronetCallOptions {
} }
static final CallOptions.Key<Collection<Object>> CRONET_ANNOTATIONS_KEY = static final CallOptions.Key<Collection<Object>> CRONET_ANNOTATIONS_KEY =
CallOptions.Key.of("cronet-annotations", null); CallOptions.Key.create("cronet-annotations");
} }