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

This reverts commit a436fd233f.
This commit is contained in:
tobrun
2018-10-22 14:02:31 +02:00
committed by Tobrun
parent fa78bcadfd
commit 3ef5bc604b
27 changed files with 28 additions and 47 deletions

View File

@@ -124,7 +124,7 @@ public final class MapFragment extends Fragment implements OnMapReadyCallback {
* @param mapboxMap The public api controller of the map
*/
@Override
public void onMapReady(@NonNull MapboxMap mapboxMap) {
public void onMapReady(MapboxMap mapboxMap) {
this.mapboxMap = mapboxMap;
for (OnMapReadyCallback onMapReadyCallback : mapReadyCallbackList) {
onMapReadyCallback.onMapReady(mapboxMap);

View File

@@ -1,7 +1,5 @@
package com.mapbox.mapboxsdk.maps;
import android.support.annotation.NonNull;
/**
* Interface definition for a callback to be invoked when the map is ready to be used.
* <p>
@@ -18,5 +16,5 @@ public interface OnMapReadyCallback {
* @param mapboxMap An instance of MapboxMap associated with the {@link MapFragment} or
* {@link MapView} that defines the callback.
*/
void onMapReady(@NonNull MapboxMap mapboxMap);
void onMapReady(MapboxMap mapboxMap);
}

View File

@@ -119,7 +119,7 @@ public class SupportMapFragment extends Fragment implements OnMapReadyCallback {
}
@Override
public void onMapReady(@NonNull MapboxMap mapboxMap) {
public void onMapReady(MapboxMap mapboxMap) {
this.mapboxMap = mapboxMap;
for (OnMapReadyCallback onMapReadyCallback : mapReadyCallbackList) {
onMapReadyCallback.onMapReady(mapboxMap);