You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It mentions using TestEnum.values()[index] or TestEnum.valueOf(string) to do the conversion. However, these can both cause uncaught exceptions (ArrayIndexOutOfBounds for the index lookup, IllegalArgumentException for the String lookup) if the values on the remote service ever change; for example, if a new value is added, but an older client doesn't have an enum value for it yet.
The text was updated successfully, but these errors were encountered:
On the documentation for custom types:
https://github.com/bluelinelabs/LoganSquare/blob/master/docs/TypeConverters.md
It mentions using
TestEnum.values()[index]
orTestEnum.valueOf(string)
to do the conversion. However, these can both cause uncaught exceptions (ArrayIndexOutOfBounds
for the index lookup,IllegalArgumentException
for the String lookup) if the values on the remote service ever change; for example, if a new value is added, but an older client doesn't have an enum value for it yet.The text was updated successfully, but these errors were encountered: