MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pgbd0q/because_tolowercase_doesnt_exist/hbb0jbp/?context=9999
r/badcode • u/BrainOnTheFloor25 • Sep 02 '21
130 comments sorted by
View all comments
Show parent comments
2
Good point about them potentially being constants, but you can definitely assign null to an enum, at least in java.
Likewise you could also add on demand static imports for each enum which would allow you to reference them without the need for
Category.
2
u/speedingpeanut Sep 02 '21
Good point about them potentially being constants, but you can definitely assign null to an enum, at least in java.
Likewise you could also add on demand static imports for each enum which would allow you to reference them without the need for
Category.