title: Unchecked call to method as a member of raw type
body: <p>Following warning is shown in my project -</p>
  
  <p>Unchecked call to 'getWeatherData(T,Boolean,String)' as a member of raw type 'IWeatherCallbackListener'.</p>
  
  <p>I have created following interface - </p>
  
  <pre><code>public interface IWeatherCallbackListener&lt;T&gt; {
   void getWeatherData(T weatherModel, Boolean success, String errorMsg);
  }
  </code></pre>
  
  <p>And called it in following way,</p>
  
  <pre><code>public class WeatherConditions {
  
  private static IWeatherApi mWeatherApi;
  
  /**
   * @param city
   * @param appId
   * @param listener
   */
  public static void getOpenWeatherData(String city, String appId, IWeatherCallbackListener listener) {
  
      mWeatherApi = ApiService.getRetrofitInstance(BASE_URL_OPEN_WEATHER).create(IWeatherApi.class);
      Call&lt;OpenWeatherModel&gt; resForgotPasswordCall = mWeatherApi.getOpenWeatherData(appId, city);
      resForgotPasswordCall.enqueue(new Callback&lt;OpenWeatherModel&gt;() {
          @Override
          public void onResponse(Call&lt;OpenWeatherModel&gt; call, Response&lt;OpenWeatherModel&gt; response) {
              if (response.body() != null) {
                  if (listener != null)
                      listener.getWeatherData(response.body(), true, "");
              }
          }
  
          @Override
          public void onFailure(Call&lt;OpenWeatherModel&gt; call, Throwable t) {
              if (listener != null)
                   listener.getWeatherData(null, false, t.getMessage());
          }
      });
  }
  </code></pre>
  
  <p>I have implemented this interface in my MainActivity and called the method   as - </p>
  
  <pre><code>WeatherConditions.getOpenWeatherData(etCityName.getText().toString(), OPEN_WEATHER_APP_ID, MainActivity.this)
  </code></pre>
  
  <p>Can anyone please help and explain this warning.</p>