[android] Use annotation.NonNull

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako 2022-06-06 12:25:56 +03:00
parent 377cf0f348
commit 2c04522154
3 changed files with 3 additions and 6 deletions

View file

@ -78,6 +78,7 @@ dependencies {
implementation 'com.google.firebase:firebase-crashlytics-ndk:18.2.6'
}
implementation 'androidx.annotation:annotation:1.3.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.fragment:fragment:1.4.1'

View file

@ -10,8 +10,6 @@ import androidx.annotation.NonNull;
import com.mapswithme.maps.MwmApplication;
import org.jetbrains.annotations.NotNull;
import java.util.List;
class AndroidNativeProvider extends BaseLocationProvider
@ -54,7 +52,7 @@ class AndroidNativeProvider extends BaseLocationProvider
private boolean mActive = false;
static private int MIN_PROVIDER_COUNT = 2; // PASSIVE is always available
@NotNull
@NonNull
final private NativeLocationListener mNativeLocationListener = new NativeLocationListener();
AndroidNativeProvider(@NonNull Context context, @NonNull BaseLocationProvider.Listener listener)

View file

@ -27,8 +27,6 @@ import com.mapswithme.util.Utils;
import com.mapswithme.util.log.Logger;
import com.mapswithme.util.log.LoggerFactory;
import org.jetbrains.annotations.NotNull;
public enum LocationHelper implements Initializable<Context>, AppBackgroundTracker.OnTransitionListener, BaseLocationProvider.Listener
{
INSTANCE;
@ -164,7 +162,7 @@ public enum LocationHelper implements Initializable<Context>, AppBackgroundTrack
};
@Override
public void initialize(@NotNull Context context)
public void initialize(@NonNull Context context)
{
mContext = context;
mSensorHelper = new SensorHelper(context);