On 25/04/2014 21:41, Konstantin Preißer wrote: > Hi Mark, <snip/>
> What about using Integer.compare(int, int), e.g.: > > @Override > public int compareTo(MatchResult o) { > int cmp = Integer.compare(this.getExact(), o.getExact()); > if (cmp == 0) { > cmp = Integer.compare(this.getAssignable(), > o.getAssignable()); > if (cmp == 0) { > cmp = Integer.compare(this.getCoercible(), > o.getCoercible()); > } > } > return cmp; > } > > (but according to Java API documentation, Integer.compare(int, int) is only > available since Java 1.7) OK for Tomcat 8 then but not Tomcat 7. You have commit privs. It is all yours. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org