title: Retrofit Custom callback and unchecked assignments
body: <p>I am trying to create my own retrofit callback handler because I want to hide a loading screen once the call is done and would rather not repeat the call. I'm getting a Unchecked Assignment warning when using my custom RetrofitCallback and not retrofit2.Callback. What is the correct way to fix this warning?</p>
  
  <pre><code>public abstract class RetrofitCallback&lt;T&gt; implements Callback {
      private BaseActivity mContext;
  
      public RetrofitCallback(Context context) {
          mContext = (BaseActivity) context;
      }
  
      @Override
      public void onResponse(Call call, Response response) {
          mContext.hideLoading();
          onSuccess(response);
      }
  
      @Override
      public void onFailure(Call call, Throwable t) {
          mContext.hideLoading();
      }
  
      public abstract void onSuccess(@NonNull Response&lt;T&gt; response);
  }
  </code></pre>
  
  <p>Call being made</p>
  
  <pre><code>service.getSignupCode(request).enqueue(new RetrofitCallback&lt;SignupResponse&gt;(this) {        
      @Override
      public void onSuccess(@NonNull Response&lt;SignupResponse&gt; response) {
  
      }
  });
  </code></pre>