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.
   
![image](https://user-images.githubusercontent.com/91315508/231650602-dadfc89c-e47e-4568-b325-9c25a7d67776.png)
   
   If you want to use switch instead, I have a suggestion:
   
![image](https://user-images.githubusercontent.com/91315508/231681576-fa9bc86e-1e5b-4f9f-87cb-3cf797d14182.png)
   
   Use this method in the SpecVersion class.It is possible to not declare 
constants.
   
![image](https://user-images.githubusercontent.com/91315508/231681623-5680aa8e-30a1-4a30-9a07-841498ff4ef4.png)
   
   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]

Reply via email to