Github user kl0u commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5052#discussion_r155482662
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestServerEndpoint.java
 ---
    @@ -317,7 +317,21 @@ public int compare(
                        return 
CASE_INSENSITIVE_ORDER.compare(o1.f0.getTargetRestEndpointURL(), 
o2.f0.getTargetRestEndpointURL());
                }
     
    -           static final class CaseInsensitiveOrderComparator implements 
Comparator<String>, Serializable {
    +           /**
    +            * Comparator for Rest URLs.
    +            *
    +            * <p>The comparator orders the Rest URLs such that URLs with 
path parameters are ordered behind
    +            * those without parameters. E.g.:
    +            * /jobs
    +            * /jobs/overview
    +            * /jobs/:jobid
    +            * /jobs/:jobid/config
    +            * /:*
    +            *
    +            * <p>IMPORTANT: This comparator is highly specific to how 
Netty path parameter are encoded. Namely
    --- End diff --
    
    1) "path parameter" -> "path parameters"
    2) "Namely via" -> "Namely with"
    3) Also update accordingly the `RestHandlerUrlComparator` class javadoc 
(which is a copy)


---

Reply via email to