Skip to content

Generated Parcelable data class uses deprecated annotation from package android.parcel #335

@ArcherEmiya05

Description

@ArcherEmiya05

I tried to generated a Parcelable data class, it has some minor issue with the annotiation

@SuppressLint("ParcelCreator")
@Parcelize
@JsonClass(generateAdapter = true)
data class Data(
    @Json(name = "id")
    val id: String = "",
    @Json(name = "metrics")
    val metrics: Metrics = Metrics(),
    @Json(name = "name")
    val name: String = "",
    @Json(name = "symbol")
    val symbol: String = ""
) : Parcelable

@SuppressLint is no longer needed while @parcelize uses deprecated annotation from kotlinx.android.parcel instead of kotlinx.parcelize

Metadata

Metadata

Assignees

Labels

L1Difficulty level 1 (Maximum is 9)enhancement

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions