Skip to content

Commit

Permalink
remove diamond operator for java 6 build (#2069)
Browse files Browse the repository at this point in the history
* remove diamond operator for java 6 build
  • Loading branch information
davecramer committed Feb 18, 2021
1 parent 18cec59 commit 207ce36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgjdbc/src/main/java/org/postgresql/util/PGtokenizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
public class PGtokenizer {

private static final Map<Character, Character> CLOSING_TO_OPENING_CHARACTER = new HashMap<>();
private static final Map<Character, Character> CLOSING_TO_OPENING_CHARACTER = new HashMap<Character, Character>();

static {
CLOSING_TO_OPENING_CHARACTER.put( ')', '(');
Expand Down Expand Up @@ -64,7 +64,7 @@ public PGtokenizer(String string, char delim) {
public int tokenize(String string, char delim) {
tokens.clear();

final Deque<Character> stack = new ArrayDeque<>();
final Deque<Character> stack = new ArrayDeque<Character>();

// stack keeps track of the levels we are in the current token.
// if stack.size is > 0 then we don't split a token when delim is matched.
Expand Down

0 comments on commit 207ce36

Please sign in to comment.