-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add String representations for object types. #114
Conversation
lolepezy
commented
May 10, 2022
- I have updated the changelog in README.md
src/main/java/net/ripe/rpki/commons/util/RepositoryObjectType.java
Outdated
Show resolved
Hide resolved
Crl("crl"), | ||
Gbr("gbr"), | ||
Aspa("asa"), | ||
Unknown("unknown"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like having a mapping between the IANA registry and strings somewhere, hhis one is a hard one since it does not map to the registry.
Maybe we can just use the name of the enum, or the extension, instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can just use the name of the enum, or the extension, instead?
What do you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do not use the value internally, I expected most uses to also be able to just use the .name() of the enum. But if we use it internally here as well it makes sense.
Merging this: This would have prevented a bug I had |