Skip to content

Commit

Permalink
refactor(retrofit): changes to process different responses at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
SheetalAtre committed Aug 22, 2023
1 parent ec8c1d4 commit a76d050
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class SpinnakerHttpException extends SpinnakerServerException {
private final Response response;
private HttpHeaders headers;

private final retrofit2.Response retrofit2Response;
private final retrofit2.Response<?> retrofit2Response;

/**
* A message derived from a RetrofitError's response body, or null if a custom message has been
Expand Down Expand Up @@ -100,8 +100,8 @@ public SpinnakerHttpException(String message, SpinnakerHttpException cause) {
* The constructor handles the HTTP retrofit2 exception, similar to retrofit logic. It is used
* with {@link com.netflix.spinnaker.kork.retrofit.ErrorHandlingExecutorCallAdapterFactory}.
*/
public <T> SpinnakerHttpException(
retrofit2.Response<T> retrofit2Response, retrofit2.Retrofit retrofit) {
public SpinnakerHttpException(
retrofit2.Response<?> retrofit2Response, retrofit2.Retrofit retrofit) {
this.retrofit2Response = retrofit2Response;
this.response = null;
this.retrofit = retrofit;
Expand Down

0 comments on commit a76d050

Please sign in to comment.