[android] - add NonNull to MapboxMap parameter for onMapReady callback, removes necessity to add question mark to all mapboxMap invocations

This commit is contained in:
Tobrun
2018-10-10 10:23:25 +02:00
committed by Tobrun
parent 9e7694cb38
commit a436fd233f
27 changed files with 47 additions and 28 deletions

View File

@@ -3,6 +3,7 @@ package com.mapbox.mapboxsdk.testapp.utils;
import android.app.Activity;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.NonNull;
import android.support.annotation.WorkerThread;
import android.support.test.espresso.IdlingResource;
@@ -50,7 +51,7 @@ public class OnMapReadyIdlingResource implements IdlingResource, OnMapReadyCallb
}
@Override
public void onMapReady(MapboxMap mapboxMap) {
public void onMapReady(@NonNull MapboxMap mapboxMap) {
this.mapboxMap = mapboxMap;
if (resourceCallback != null) {
resourceCallback.onTransitionToIdle();