@@ -73,7 +73,7 @@ public void tearDown() {
7373 }
7474
7575 private static HeaderValueOption header (String key , String value , HeaderAppendAction action ) {
76- return HeaderValueOption .create (HeaderValue .create (key , value ), action , false );
76+ return HeaderValueOption .create (HeaderValue .create (key , value ), action );
7777 }
7878
7979 @ Test
@@ -147,8 +147,7 @@ public void applyMutations_binary() {
147147 HeaderValueOption option =
148148 HeaderValueOption .create (
149149 HeaderValue .create (BINARY_KEY .name (), ByteString .copyFrom (value )),
150- HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD ,
151- false );
150+ HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD );
152151 headerMutator .applyMutations (
153152 HeaderMutations .create (ImmutableList .of (option ), ImmutableList .of ()), headers );
154153 assertThat (headers .get (BINARY_KEY )).isEqualTo (value );
@@ -195,8 +194,7 @@ public void applyResponseMutations_binary() {
195194 HeaderValueOption option =
196195 HeaderValueOption .create (
197196 HeaderValue .create (BINARY_KEY .name (), ByteString .copyFrom (value )),
198- HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD ,
199- false );
197+ HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD );
200198 headerMutator .applyMutations (
201199 HeaderMutations .create (ImmutableList .of (option ), ImmutableList .of ()), headers );
202200 assertThat (headers .get (BINARY_KEY )).isEqualTo (value );
@@ -219,21 +217,19 @@ public void applyMutations_keepEmptyValue() {
219217 header (OVERWRITE_IF_EXISTS_KEY .name (), "" , HeaderAppendAction .OVERWRITE_IF_EXISTS ),
220218 HeaderValueOption .create (
221219 HeaderValue .create ("keep-empty-key" , "" ),
222- HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD ,
223- true ),
220+ HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD ),
224221 HeaderValueOption .create (
225222 HeaderValue .create ("keep-empty-overwrite-key" , "" ),
226- HeaderAppendAction .OVERWRITE_IF_EXISTS_OR_ADD ,
227- true ),
223+ HeaderAppendAction .OVERWRITE_IF_EXISTS_OR_ADD ),
228224 HeaderValueOption .create (
229225 HeaderValue .create ("keep-empty-bin-key-bin" , ByteString .EMPTY ),
230- HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD , true ),
226+ HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD ),
231227 HeaderValueOption .create (
232228 HeaderValue .create ("ignore-empty-bin-key-bin" , ByteString .EMPTY ),
233- HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD , false ),
229+ HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD ),
234230 HeaderValueOption .create (
235231 HeaderValue .create ("overwrite-empty-bin-key-bin" , ByteString .EMPTY ),
236- HeaderAppendAction .OVERWRITE_IF_EXISTS_OR_ADD , false )),
232+ HeaderAppendAction .OVERWRITE_IF_EXISTS_OR_ADD )),
237233 ImmutableList .of ());
238234
239235 headers .put (
@@ -287,7 +283,7 @@ public void applyMutations_binaryRemoval() {
287283 public void applyMutations_stringValueWithBinaryKey_ignored () {
288284 Metadata headers = new Metadata ();
289285 HeaderValueOption option = HeaderValueOption .create (HeaderValue .create ("some-key-bin" , "value" ),
290- HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD , false );
286+ HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD );
291287
292288 headerMutator .applyMutations (
293289 HeaderMutations .create (ImmutableList .of (option ), ImmutableList .of ()), headers );
@@ -301,7 +297,7 @@ public void applyMutations_binaryValueWithAsciiKey_ignored() {
301297 Metadata headers = new Metadata ();
302298 HeaderValueOption option = HeaderValueOption .create (
303299 HeaderValue .create ("some-key" , ByteString .copyFrom (new byte [] {1 })),
304- HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD , false );
300+ HeaderAppendAction .APPEND_IF_EXISTS_OR_ADD );
305301
306302 headerMutator .applyMutations (
307303 HeaderMutations .create (ImmutableList .of (option ), ImmutableList .of ()), headers );
0 commit comments