Sfoglia il codice sorgente

codacy: all methods are static. Consider using a utility class instead.

AndyScherzinger 6 anni fa
parent
commit
799c3a3163

+ 4 - 1
src/gplay/java/com/owncloud/android/utils/GooglePlayUtils.java

@@ -26,10 +26,13 @@ import android.util.Log;
 import com.google.android.gms.common.ConnectionResult;
 import com.google.android.gms.common.GoogleApiAvailability;
 
-public class GooglePlayUtils {
+public final class GooglePlayUtils {
     private static final int PLAY_SERVICES_RESOLUTION_REQUEST = 9000;
     private static final String TAG = "GooglePlayUtils";
 
+    private GooglePlayUtils() {
+    }
+
     public static boolean checkPlayServices(Activity activity) {
         GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();
         int resultCode = apiAvailability.isGooglePlayServicesAvailable(activity);