Skip to content
Permalink
Browse files

fix: add type parameter so code is Java 6/7 compatible

  • Loading branch information
vlsi committed Jan 2, 2018
1 parent 63918eb commit 1361c5208d6afc5d54e4df1053c48cdb31df9038
Showing with 2 additions and 2 deletions.
  1. +2 −2 pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java
@@ -2072,7 +2072,7 @@ protected void processResults(ResultHandler handler, int flags) throws IOExcepti
if (fields != null && tuples == null) {
// When no results expected, pretend an empty resultset was returned
// Not sure if new ArrayList can be always replaced with emptyList
tuples = noResults ? Collections.emptyList() : new ArrayList<byte[][]>();
tuples = noResults ? Collections.<byte[][]>emptyList() : new ArrayList<byte[][]>();
}

handler.handleResultRows(currentQuery, fields, tuples, currentPortal);
@@ -2122,7 +2122,7 @@ protected void processResults(ResultHandler handler, int flags) throws IOExcepti
if (fields != null && tuples == null) {
// When no results expected, pretend an empty resultset was returned
// Not sure if new ArrayList can be always replaced with emptyList
tuples = noResults ? Collections.emptyList() : new ArrayList<byte[][]>();
tuples = noResults ? Collections.<byte[][]>emptyList() : new ArrayList<byte[][]>();
}

// If we received tuples we must know the structure of the

0 comments on commit 1361c52

Please sign in to comment.
You can’t perform that action at this time.