We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76bb696 commit b129d50Copy full SHA for b129d50
visualvm/heapviewer/src/com/sun/tools/visualvm/heapviewer/utils/SortedObjectsBuffer.java
@@ -171,8 +171,8 @@ private class WrapperComparator implements Comparator<Wrapper<T>> {
171
@Override
172
public int compare(Wrapper<T> o1, Wrapper<T> o2) {
173
if (o1 == o2) return 0;
174
- if (o1 == null) return ascending ? -1 : 1;
175
- if (o2 == null) return ascending ? 1 : -1;
+ if (o1 == null) return 1;
+ if (o2 == null) return -1;
176
int comp = SortedObjectsBuffer.this.compare(o1.value, o2.value);
177
if (comp == 0) {
178
if (o1.serialId > o2.serialId) return 1;
0 commit comments