From 5b02434e88d9504651a85ac0fe94ea5f1eeb8a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Paczos?= Date: Thu, 11 Jul 2019 12:27:13 +0200 Subject: [android] remove access token's nullability annotations to not impact Kotlin interop --- .../MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java | 2 +- .../src/main/java/com/mapbox/mapboxsdk/storage/FileSource.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java index f384ee7342..01c82ddad4 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java @@ -85,7 +85,7 @@ public final class Mapbox { /** * Set the current active accessToken. */ - public static void setAccessToken(@Nullable String accessToken) { + public static void setAccessToken(String accessToken) { validateMapbox(); INSTANCE.accessToken = accessToken; diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/storage/FileSource.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/storage/FileSource.java index b40246b765..763c97cca7 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/storage/FileSource.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/storage/FileSource.java @@ -380,7 +380,7 @@ public class FileSource { public native void deactivate(); @Keep - public native void setAccessToken(@Nullable String accessToken); + public native void setAccessToken(String accessToken); @NonNull @Keep -- cgit v1.2.1