Skip to content

Commit 0c915f7

Browse files
Merge pull request #51 from clausnagel/fix-indexed-placeholders
Fix wrong order of indexed placeholders
2 parents 84a26b4 + 05fe403 commit 0c915f7

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/github/vertical_blank/sqlformatter/core

1 file changed

+2
-2
lines changed

src/main/java/com/github/vertical_blank/sqlformatter/core/Params.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.github.vertical_blank.sqlformatter.core;
22

3+
import java.util.ArrayDeque;
34
import java.util.List;
45
import java.util.Map;
5-
import java.util.PriorityQueue;
66
import java.util.Queue;
77

88
/** Handles placeholder replacement with given params. */
@@ -74,7 +74,7 @@ public static class IndexedParams implements Params {
7474
private final Queue<?> params;
7575

7676
IndexedParams(List<?> params) {
77-
this.params = new PriorityQueue<>(params);
77+
this.params = new ArrayDeque<>(params);
7878
}
7979

8080
public boolean isEmpty() {

0 commit comments

Comments
 (0)