Skip to content

Commit

Permalink
style: add deprecation annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Nov 6, 2023
1 parent ec36cd4 commit 3034d23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Void?, Void?, Void?>() {

@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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3034d23

Please sign in to comment.