Skip to content

Commit

Permalink
fix: no addFirst() in java 17!
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Jul 26, 2024
1 parent 219aaab commit 5368ddb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private void move(boolean forward, boolean end) {
list.add(infoComponent.id());
} else {
list.remove(infoComponent.id());
list.addFirst(infoComponent.id());
list.add(0, infoComponent.id());
}
} else {
int index = list.indexOf(infoComponent.id());
Expand Down

0 comments on commit 5368ddb

Please sign in to comment.