Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
moderakh committed Jun 4, 2019
1 parent ad7ba3a commit b3ff055
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ static protected void safeCloseAsync(AsyncDocumentClient client) {
try {
client.close();
} catch (Exception e) {
e.printStackTrace();
logger.error("failed to close client", e);
}
}).start();
}
Expand All @@ -711,7 +711,7 @@ static protected void safeClose(AsyncDocumentClient client) {
try {
client.close();
} catch (Exception e) {
e.printStackTrace();
logger.error("failed to close client", e);
}
}
}
Expand Down Expand Up @@ -893,7 +893,7 @@ public static Object[][] clientBuildersWithDirectSession() {
}

static Protocol[] toArray(List<Protocol> protocols) {
return protocols.toArray(new Protocol[0]);
return protocols.toArray(new Protocol[protocols.size()]);
}

private static Object[][] clientBuildersWithDirectSession(Protocol... protocols) {
Expand Down

0 comments on commit b3ff055

Please sign in to comment.