Alonexc commented on PR #3709: URL: https://github.com/apache/eventmesh/pull/3709#issuecomment-1506466860
switch is doing string comparison, the condition of case must be a constant to work, and according to the underlying code, this class is of enum type.  If you want to use switch instead, I have a suggestion:  Use this method in the SpecVersion class.It is possible to not declare constants.  Please correct me if there are any errors. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
