[android] Fix Android Studio warnings

Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-11-28 14:49:37 +01:00
committed by x7z4w
parent acdcfe62a4
commit 22d7cf3969
16 changed files with 27 additions and 66 deletions

View File

@@ -1,7 +1,5 @@
package app.organicmaps.sdk.bookmarks.data;
import java.text.DecimalFormat;
/**
* represents the details of the socket available on a particular charging station
*

View File

@@ -16,7 +16,7 @@ public class PredefinedColors
public @interface Color
{}
/// @note Color format: ARGB
/// note Color format: ARGB
@ColorInt
private static final int[] PREDEFINED_COLORS = nativeGetPredefinedColors();

View File

@@ -13,19 +13,6 @@ public final class OsmOAuth
{
private OsmOAuth() {}
public enum AuthType
{
OSM("OSM"),
GOOGLE("Google");
public final String name;
AuthType(String name)
{
this.name = name;
}
}
@SuppressWarnings("NotNullFieldNotInitialized")
@NonNull
private static SharedPreferences mPrefs;

View File

@@ -32,7 +32,6 @@ public final class Constants
public static final String OPENING_HOURS_MANUAL = "file:///android_asset/opening_hours_how_to_edit.html";
public static final String OSM_REGISTER = "https://www.openstreetmap.org/user/new";
public static final String OSM_RECOVER_PASSWORD = "https://www.openstreetmap.org/user/forgot-password";
private Url() {}
}

View File

@@ -33,7 +33,7 @@ public final class Distance
}
}
/// @todo What is the difference with cpp: kNarrowNonBreakingSpace = "\u202F" ?
/// todo What is the difference with cpp: kNarrowNonBreakingSpace = "\u202F" ?
private static final char NON_BREAKING_SPACE = '\u00A0';
public final double mDistance;