[Android] Remove lint warnings for JNI callbacks

Geoffrey Métais git at videolan.org
Fri Dec 29 11:00:30 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec 29 10:52:56 2017 +0100| [d8aebfd9f1c5be242aaf0cb40f9aa01e5049f4c8] | committer: Geoffrey Métais

Remove lint warnings for JNI callbacks

> https://code.videolan.org/videolan/vlc-android/commit/d8aebfd9f1c5be242aaf0cb40f9aa01e5049f4c8
---

 .../src/org/videolan/medialibrary/Medialibrary.java     | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
index 8d9e67404..02d5639bd 100644
--- a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
+++ b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
@@ -317,46 +317,55 @@ public class Medialibrary {
         return mw;
     }
 
+    @SuppressWarnings("unused")
     public void onMediaAdded(MediaWrapper[] mediaList) {
         if (mediaAddedCb != null)
             mediaAddedCb.onMediaAdded(mediaList);
     }
 
+    @SuppressWarnings("unused")
     public void onMediaUpdated(MediaWrapper[] mediaList) {
         if (mediaUpdatedCb != null)
             mediaUpdatedCb.onMediaUpdated(mediaList);
     }
 
+    @SuppressWarnings("unused")
     public void onMediaDeleted(long[] ids) {
         for (long id : ids)
             Log.d(TAG, "onMediaDeleted: "+id);
     }
 
+    @SuppressWarnings("unused")
     public void onArtistsAdded() {
         if (mArtistsAddedCb != null)
             mArtistsAddedCb.onArtistsAdded();
     }
 
+    @SuppressWarnings("unused")
     public void onArtistsModified() {
         if (mArtistsModifiedCb != null)
             mArtistsModifiedCb.onArtistsModified();
     }
 
+    @SuppressWarnings("unused")
     public void onAlbumsAdded() {
         if (mAlbumsAddedCb != null)
             mAlbumsAddedCb.onAlbumsAdded();
     }
 
+    @SuppressWarnings("unused")
     public void onAlbumsModified() {
         if (mAlbumsModifiedCb != null)
             mAlbumsModifiedCb.onAlbumsModified();
     }
 
+    @SuppressWarnings("unused")
     public void onArtistsDeleted(long[] ids) {
         for (long id : ids)
             Log.d(TAG, "onArtistsDeleted: "+id);
     }
 
+    @SuppressWarnings("unused")
     public void onAlbumsDeleted(long[] ids) {
         for (long id : ids)
             Log.d(TAG, "onAlbumsDeleted: "+id);
@@ -415,6 +424,7 @@ public class Medialibrary {
         LocalBroadcastManager.getInstance(sContext).sendBroadcast(new Intent(ACTION_IDLE).putExtra(STATE_IDLE, isIdle));
     }
 
+    @SuppressWarnings("unused")
     void onReloadStarted(String entryPoint) {
         synchronized (devicesDiscoveryCbList) {
             if (!devicesDiscoveryCbList.isEmpty())
@@ -422,6 +432,8 @@ public class Medialibrary {
                     cb.onReloadStarted(entryPoint);
         }
     }
+
+    @SuppressWarnings("unused")
     void onReloadCompleted(String entryPoint) {
         synchronized (devicesDiscoveryCbList) {
             if (!devicesDiscoveryCbList.isEmpty())
@@ -430,6 +442,7 @@ public class Medialibrary {
         }
     }
 
+    @SuppressWarnings("unused")
     void onEntryPointBanned(String entryPoint, boolean success) {
         synchronized (entryPointsEventsCbList) {
             if (!entryPointsEventsCbList.isEmpty())
@@ -437,6 +450,8 @@ public class Medialibrary {
                     cb.onEntryPointBanned(entryPoint, success);
         }
     }
+
+    @SuppressWarnings("unused")
     void onEntryPointUnbanned(String entryPoint, boolean success) {
         synchronized (entryPointsEventsCbList) {
             if (!entryPointsEventsCbList.isEmpty())
@@ -444,6 +459,8 @@ public class Medialibrary {
                     cb.onEntryPointUnbanned(entryPoint, success);
         }
     }
+
+    @SuppressWarnings("unused")
     void onEntryPointRemoved(String entryPoint, boolean success) {
         synchronized (entryPointsEventsCbList) {
             if (!entryPointsEventsCbList.isEmpty())



More information about the Android mailing list