WencongLiu commented on code in PR #20236:
URL: https://github.com/apache/flink/pull/20236#discussion_r923098805


##########
flink-runtime/src/main/java/org/apache/flink/runtime/rest/versioning/RestAPIVersion.java:
##########
@@ -31,7 +31,7 @@
  * modification of a handler url - addition of new mandatory parameters - 
removal of a
  * handler/request - modifications to request/response bodies (excluding 
additions)
  */
-public enum RestAPIVersion {
+public enum RestAPIVersion implements APIVersion {

Review Comment:
   Done.
   1. remove fromURLVersionPrefix
   2. The Enum type does not support the method overriding of the Comparable 
interface, so I made `RestAPIVersion ` implement the Comparator interface and 
add `getLatestVersion ` method.
   
   



-- 
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]

Reply via email to