[Android] Suppress warnings for native functions
Geoffrey Métais
git at videolan.org
Fri Nov 2 14:25:11 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Nov 2 14:13:17 2018 +0100| [28153a6ef65bd87ec5b665cff55a25dccb1ba895] | committer: Geoffrey Métais
Suppress warnings for native functions
> https://code.videolan.org/videolan/vlc-android/commit/28153a6ef65bd87ec5b665cff55a25dccb1ba895
---
medialibrary/src/org/videolan/medialibrary/Medialibrary.java | 1 +
medialibrary/src/org/videolan/medialibrary/media/Album.java | 1 +
medialibrary/src/org/videolan/medialibrary/media/Artist.java | 4 +++-
medialibrary/src/org/videolan/medialibrary/media/Folder.java | 1 +
medialibrary/src/org/videolan/medialibrary/media/Genre.java | 4 +++-
medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java | 4 +++-
medialibrary/src/org/videolan/medialibrary/media/Playlist.java | 1 +
7 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
index 5e3e10d81..a2fbe6c23 100644
--- a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
+++ b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
@@ -35,6 +35,7 @@ import androidx.lifecycle.MutableLiveData;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import videolan.org.commontools.LiveEvent;
+ at SuppressWarnings("JniMissingFunction")
public class Medialibrary {
private static final String TAG = "VLC/JMedialibrary";
diff --git a/medialibrary/src/org/videolan/medialibrary/media/Album.java b/medialibrary/src/org/videolan/medialibrary/media/Album.java
index 82febe9c6..60a56abb8 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/Album.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/Album.java
@@ -8,6 +8,7 @@ import org.videolan.libvlc.util.VLCUtil;
import org.videolan.medialibrary.Medialibrary;
import org.videolan.medialibrary.R;
+ at SuppressWarnings("JniMissingFunction")
public class Album extends MediaLibraryItem {
public static final String TAG = "VLC/Album";
public static class SpecialRes {
diff --git a/medialibrary/src/org/videolan/medialibrary/media/Artist.java b/medialibrary/src/org/videolan/medialibrary/media/Artist.java
index e06cd4914..9f2a24ace 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/Artist.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/Artist.java
@@ -2,12 +2,14 @@ package org.videolan.medialibrary.media;
import android.os.Parcel;
import android.os.Parcelable;
-import androidx.annotation.NonNull;
import org.videolan.libvlc.util.VLCUtil;
import org.videolan.medialibrary.Medialibrary;
import org.videolan.medialibrary.R;
+import androidx.annotation.NonNull;
+
+ at SuppressWarnings("JniMissingFunction")
public class Artist extends MediaLibraryItem {
private String shortBio;
diff --git a/medialibrary/src/org/videolan/medialibrary/media/Folder.java b/medialibrary/src/org/videolan/medialibrary/media/Folder.java
index 1261b5e07..0d1edd571 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/Folder.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/Folder.java
@@ -5,6 +5,7 @@ import android.os.Parcelable;
import org.videolan.medialibrary.Medialibrary;
+ at SuppressWarnings("JniMissingFunction")
public class Folder extends MediaLibraryItem {
private String mMrl;
diff --git a/medialibrary/src/org/videolan/medialibrary/media/Genre.java b/medialibrary/src/org/videolan/medialibrary/media/Genre.java
index 6ad75eaa7..eb051521f 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/Genre.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/Genre.java
@@ -2,10 +2,12 @@ package org.videolan.medialibrary.media;
import android.os.Parcel;
import android.os.Parcelable;
-import androidx.annotation.NonNull;
import org.videolan.medialibrary.Medialibrary;
+import androidx.annotation.NonNull;
+
+ at SuppressWarnings("JniMissingFunction")
public class Genre extends MediaLibraryItem {
public Genre(long id, String title) {
diff --git a/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java b/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
index 97f5b8c0e..8d8b8b025 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/MediaWrapper.java
@@ -24,7 +24,6 @@ import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
-import androidx.annotation.Nullable;
import android.text.TextUtils;
import org.videolan.libvlc.Media;
@@ -38,6 +37,9 @@ import org.videolan.medialibrary.Tools;
import java.util.Locale;
+import androidx.annotation.Nullable;
+
+ at SuppressWarnings("JniMissingFunction")
public class MediaWrapper extends MediaLibraryItem implements Parcelable {
public final static String TAG = "VLC/MediaWrapper";
diff --git a/medialibrary/src/org/videolan/medialibrary/media/Playlist.java b/medialibrary/src/org/videolan/medialibrary/media/Playlist.java
index 59bc58da3..97e565bc7 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/Playlist.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/Playlist.java
@@ -7,6 +7,7 @@ import org.videolan.medialibrary.Medialibrary;
import java.util.List;
+ at SuppressWarnings("JniMissingFunction")
public class Playlist extends MediaLibraryItem {
private int mTracksCount;
More information about the Android
mailing list