@@ -508,7 +508,7 @@ void overrideTypeSpecificDecoder() throws Throwable {
508508
509509 TestInterfaceAsync api =
510510 new TestInterfaceAsyncBuilder ()
511- .decoder ((response , type ) -> "fail" )
511+ .decoder ((_ , _ ) -> "fail" )
512512 .target ("http://localhost:" + server .getPort ());
513513
514514 assertThat (unwrap (api .post ())).isEqualTo ("fail" );
@@ -551,7 +551,7 @@ void doesntRetryAfterResponseIsSent() throws Throwable {
551551 TestInterfaceAsync api =
552552 new TestInterfaceAsyncBuilder ()
553553 .decoder (
554- (response , type ) -> {
554+ (_ , _ ) -> {
555555 throw new IOException ("timeout" );
556556 })
557557 .target ("http://localhost:" + server .getPort ());
@@ -569,7 +569,7 @@ void throwsFeignExceptionIncludingBody() throws Throwable {
569569 TestInterfaceAsync api =
570570 AsyncFeign .builder ()
571571 .decoder (
572- (response , type ) -> {
572+ (_ , _ ) -> {
573573 throw new IOException ("timeout" );
574574 })
575575 .target (TestInterfaceAsync .class , "http://localhost:" + server .getPort ());
@@ -594,7 +594,7 @@ void throwsFeignExceptionWithoutBody() {
594594 TestInterfaceAsync api =
595595 AsyncFeign .builder ()
596596 .decoder (
597- (response , type ) -> {
597+ (_ , _ ) -> {
598598 throw new IOException ("timeout" );
599599 })
600600 .target (TestInterfaceAsync .class , "http://localhost:" + server .getPort ());
@@ -621,7 +621,7 @@ void ensureRetryerClonesItself() throws Throwable {
621621 AsyncFeign .builder ()
622622 .retryer (retryer )
623623 .errorDecoder (
624- (methodKey , response ) ->
624+ (_ , response ) ->
625625 new RetryableException (
626626 response .status (),
627627 "play it again sam!" ,
@@ -647,7 +647,7 @@ void throwsOriginalExceptionAfterFailedRetries() throws Throwable {
647647 .exceptionPropagationPolicy (UNWRAP )
648648 .retryer (new Retryer .Default (1 , 1 , 2 ))
649649 .errorDecoder (
650- (methodKey , response ) ->
650+ (_ , response ) ->
651651 new RetryableException (
652652 response .status (),
653653 "play it again sam!" ,
@@ -673,7 +673,7 @@ void throwsRetryableExceptionIfNoUnderlyingCause() throws Throwable {
673673 .exceptionPropagationPolicy (UNWRAP )
674674 .retryer (new Retryer .Default (1 , 1 , 2 ))
675675 .errorDecoder (
676- (methodKey , response ) ->
676+ (_ , response ) ->
677677 new RetryableException (
678678 response .status (),
679679 message ,
@@ -705,7 +705,7 @@ void whenReturnTypeIsResponseNoErrorHandling() throws Throwable {
705705 // fake client as Client.Default follows redirects.
706706 TestInterfaceAsync api =
707707 AsyncFeign .<Void >builder ()
708- .client (new AsyncClient .Default <>((request , options ) -> response , execs ))
708+ .client (new AsyncClient .Default <>((_ , _ ) -> response , execs ))
709709 .target (TestInterfaceAsync .class , "http://localhost:" + server .getPort ());
710710
711711 assertThat (unwrap (api .response ()).headers ())
@@ -730,7 +730,7 @@ public void cancelRetry(final int expectedTryCount) throws Throwable {
730730 final int RUNNING_TIME_MILLIS = 100 ;
731731 final ExecutorService execs = Executors .newSingleThreadExecutor ();
732732 final AsyncClient <Void > clientMock =
733- (request , options , requestContext ) ->
733+ (_ , _ , _ ) ->
734734 CompletableFuture .supplyAsync (
735735 () -> {
736736 final int tryCount = actualTryCount .addAndGet (1 );
@@ -796,7 +796,7 @@ void okIfDecodeRootCauseHasNoMessage() throws Throwable {
796796 TestInterfaceAsync api =
797797 new TestInterfaceAsyncBuilder ()
798798 .decoder (
799- (response , type ) -> {
799+ (_ , _ ) -> {
800800 throw new RuntimeException ();
801801 })
802802 .target ("http://localhost:" + server .getPort ());
@@ -812,7 +812,7 @@ void decodingExceptionGetWrappedInDismiss404Mode() throws Throwable {
812812 new TestInterfaceAsyncBuilder ()
813813 .dismiss404 ()
814814 .decoder (
815- (response , type ) -> {
815+ (response , _ ) -> {
816816 assertEquals (404 , response .status ());
817817 throw new NoSuchElementException ();
818818 })
@@ -848,7 +848,7 @@ void okIfEncodeRootCauseHasNoMessage() throws Throwable {
848848 TestInterfaceAsync api =
849849 new TestInterfaceAsyncBuilder ()
850850 .encoder (
851- (object , bodyType , template ) -> {
851+ (_ , _ , _ ) -> {
852852 throw new RuntimeException ();
853853 })
854854 .target ("http://localhost:" + server .getPort ());
@@ -951,7 +951,7 @@ void responseMapperIsAppliedBeforeDelegate() throws IOException {
951951 }
952952
953953 private ResponseMapper upperCaseResponseMapper () {
954- return (response , type ) -> {
954+ return (response , _ ) -> {
955955 try {
956956 return response .toBuilder ()
957957 .body (Util .toString (response .body ().asReader ()).toUpperCase ().getBytes ())
@@ -1222,7 +1222,7 @@ static final class TestInterfaceAsyncBuilder {
12221222 AsyncFeign .<Void >builder ()
12231223 .decoder (new Decoder .Default ())
12241224 .encoder (
1225- (object , bodyType , template ) -> {
1225+ (object , _ , template ) -> {
12261226 if (object instanceof Map ) {
12271227 template .body (new Gson ().toJson (object ));
12281228 } else {
0 commit comments