Open jezsung opened 3 months ago
The AdaptyErrorCode variables are currently declared as static final.
AdaptyErrorCode
static final
This makes it impossible to use the error codes with the switch expression.
switch
I suggest the following code changes to all static variables:
class AdaptyErrorCode { static final int unknown = 0; // to static const int unknown = 0; ...
Hi @jezsung! That seems to be a good enhancement. I think we will implement that in the next release. Thank you!
The
AdaptyErrorCode
variables are currently declared asstatic final
.This makes it impossible to use the error codes with the
switch
expression.I suggest the following code changes to all static variables: