< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements/src/org/graalvm/compiler/replacements/SnippetCounter.java

Print this page

        

*** 91,106 **** /** * Sorts counters in descending order of their {@linkplain #value() values}. */ @Override public int compareTo(SnippetCounter o) { ! if (value > o.value) { ! return -1; ! } else if (o.value < value) { ! return 1; ! } ! return 0; } private final Group group; private final String name; private final String description; --- 91,101 ---- /** * Sorts counters in descending order of their {@linkplain #value() values}. */ @Override public int compareTo(SnippetCounter o) { ! return Long.signum(o.value - value); } private final Group group; private final String name; private final String description;
< prev index next >