Skip to content

Commit

Permalink
Polish apache#4813 : [Feature] add Prioritized implementation for Ser…
Browse files Browse the repository at this point in the history
…viceInstanceCustomizer
  • Loading branch information
mercyblitz committed Aug 15, 2019
1 parent 1ac1ad7 commit f67d769
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public interface Prioritized extends Comparable<Prioritized> {
return -1;
} else if (b2 && !b1) { // two is Prioritized, one is not
return 1;
} else if (b1 && b2) { // one and two both Prioritized
} else if (b1 && b2) { // one and two both are Prioritized
return ((Prioritized) one).compareTo((Prioritized) two);
} else { // no different
return 0;
Expand All @@ -54,6 +54,7 @@ public interface Prioritized extends Comparable<Prioritized> {
* The minimum priority
*/
int MIN_PRIORITY = Integer.MAX_VALUE;

/**
* Normal Priority
*/
Expand Down

0 comments on commit f67d769

Please sign in to comment.