Procházet zdrojové kódy

[공통][Common] PMD Analyze 적용

Hasemi před 6 roky
rodič
revize
017480bb7d

+ 4 - 2
app/src/main/java/kr/co/zumo/app/lifeplus/network/api/CustomGsonConverterFactory.java

@@ -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);
   }