Skip to content

Commit ecf2265

Browse files
committed
BTRACE-62: Fixing bug when calling removeFirst, so that removeFirst is what is called on the underlying Collection.
1 parent b0df8d5 commit ecf2265

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/share/classes/com/sun/btrace/BTraceRuntime.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ public static <V> V removeLast(Deque<V> queue) {
919919

920920
public static <V> V removeFirst(Deque<V> queue) {
921921
if (queue instanceof BTraceDeque || queue.getClass().getClassLoader() == null) {
922-
return queue.removeLast();
922+
return queue.removeFirst();
923923
} else {
924924
throw new IllegalArgumentException();
925925
}

0 commit comments

Comments
 (0)