|
|
@@ -3,6 +3,8 @@
|
|
|
*/
|
|
|
package kr.co.zumo.app.lifeplus.network.api;
|
|
|
|
|
|
+import android.support.annotation.NonNull;
|
|
|
+
|
|
|
import com.google.gson.Gson;
|
|
|
import com.google.gson.TypeAdapter;
|
|
|
import com.google.gson.reflect.TypeToken;
|
|
|
@@ -31,8 +33,8 @@ import retrofit2.Retrofit;
|
|
|
* @since 2019. 1. 30.
|
|
|
*/
|
|
|
public class CustomGsonConverterFactory extends Converter.Factory implements Interceptor, IHeadersProvider {
|
|
|
- public static CustomGsonConverterFactory create(Gson gson) {
|
|
|
- if (gson == null) { throw new NullPointerException("gson == null"); }
|
|
|
+ public static CustomGsonConverterFactory create(@NonNull Gson gson) {
|
|
|
+ // if (gson == null) { throw new NullPointerException("gson == null"); }
|
|
|
return new CustomGsonConverterFactory(gson);
|
|
|
}
|
|
|
|