diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2019-07-11 12:27:13 +0200 |
---|---|---|
committer | Łukasz Paczos <lukasz.paczos@mapbox.com> | 2019-07-11 12:59:05 +0200 |
commit | 5b02434e88d9504651a85ac0fe94ea5f1eeb8a5e (patch) | |
tree | ae550071378c4f0dd8c4de411fa36675b68dad32 | |
parent | 4348169aacfe71eef77a7eb54c1790848d03fa9d (diff) | |
download | qtlocation-mapboxgl-5b02434e88d9504651a85ac0fe94ea5f1eeb8a5e.tar.gz |
[android] remove access token's nullability annotations to not impact Kotlin interop
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java | 2 | ||||
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/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 |