Enum annotations in Kotlin

后端 未结 2 1013
有刺的猬
有刺的猬 2021-01-12 17:27

I have an enumeration that is serialized/deserialized by Gson:

enum class PacketType {
    NONE;
    [SerializedName(\"request\")]
    REQUEST;
    [Serializ         


        
2条回答
  •  情话喂你
    2021-01-12 17:53

    Looks like a bug to me. Please report to the issue tracker.

    As a temporary workaround, you can write this class in Java

提交回复
热议问题