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 b0bc575 commit 271491a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ import android.os.AsyncTask
import java.net.HttpURLConnection
import java.net.URL

@Suppress("DEPRECATION")
internal class ParselyAPIConnection(private val tracker: ParselyTracker) : AsyncTask<String?, Exception?, Void?>() {
private var exception: Exception? = null
protected override fun doInBackground(vararg data: String?): Void? {

@Deprecated("Deprecated in Java")
override fun doInBackground(vararg data: String?): Void? {
var connection: HttpURLConnection? = null
try {
if (data.size == 1) { // non-batched (since no post data is included)
Expand All @@ -42,6 +45,7 @@ internal class ParselyAPIConnection(private val tracker: ParselyTracker) : Async
return null
}

@Deprecated("Deprecated in Java")
override fun onPostExecute(result: Void?) {
if (exception != null) {
ParselyTracker.PLog("Pixel request exception")
Expand Down

0 comments on commit 271491a

Please sign in to comment.