diff --git a/parsely/src/main/java/com/parsely/parselyandroid/QueueManager.kt b/parsely/src/main/java/com/parsely/parselyandroid/QueueManager.kt index 6a786cc1..59d5401b 100644 --- a/parsely/src/main/java/com/parsely/parselyandroid/QueueManager.kt +++ b/parsely/src/main/java/com/parsely/parselyandroid/QueueManager.kt @@ -2,11 +2,13 @@ package com.parsely.parselyandroid import android.os.AsyncTask +@Suppress("DEPRECATION") internal class QueueManager( private val parselyTracker: ParselyTracker, private val localStorageRepository: LocalStorageRepository ) : AsyncTask() { + @Deprecated("Deprecated in Java") override fun doInBackground(vararg params: Void?): Void? { // if event queue is too big, push to persisted storage if (parselyTracker.inMemoryQueue.size > QUEUE_SIZE_LIMIT) { diff --git a/parsely/src/test/java/com/parsely/parselyandroid/QueueManagerTest.kt b/parsely/src/test/java/com/parsely/parselyandroid/QueueManagerTest.kt index 2bb00887..86613295 100644 --- a/parsely/src/test/java/com/parsely/parselyandroid/QueueManagerTest.kt +++ b/parsely/src/test/java/com/parsely/parselyandroid/QueueManagerTest.kt @@ -11,6 +11,7 @@ import org.robolectric.RobolectricTestRunner import org.robolectric.annotation.LooperMode import org.robolectric.shadows.ShadowLooper.shadowMainLooper +@Suppress("DEPRECATION") @RunWith(RobolectricTestRunner::class) @LooperMode(LooperMode.Mode.PAUSED) internal class QueueManagerTest {