Open eike-welk opened 7 years ago
There are currently several collections of magic strings, that are used like Enums.
For example listing.type, listing.state, listing.site, listing.condition, also listing.curreny can be seen as an enum.
Arbitrary values can be put into their fields, use of enums would catch errors and API-changes.
Use real enums instead of these magic strings.
Problem
There are currently several collections of magic strings, that are used like Enums.
For example listing.type, listing.state, listing.site, listing.condition, also listing.curreny can be seen as an enum.
Arbitrary values can be put into their fields, use of enums would catch errors and API-changes.
Therefore
Use real enums instead of these magic strings.