Skip to content

Commit a724ce8

Browse files
committed
Replaced call to Arrays.list with call to Collections.singletonList
1 parent 5108d54 commit a724ce8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver-core/src/main/com/mongodb/operation/AsyncQueryBatchCursor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import static com.mongodb.assertions.Assertions.notNull;
3232
import static com.mongodb.internal.async.ErrorHandlingResultCallback.errorHandlingCallback;
3333
import static com.mongodb.operation.CursorHelper.getNumberToReturn;
34-
import static java.util.Arrays.asList;
34+
import static java.util.Collections.singletonList;
3535

3636
class AsyncQueryBatchCursor<T> implements AsyncBatchCursor<T> {
3737

@@ -140,7 +140,7 @@ private void killCursor() {
140140
connectionSource.getConnection(new SingleResultCallback<AsyncConnection>() {
141141
@Override
142142
public void onResult(final AsyncConnection connection, final Throwable connectionException) {
143-
connection.killCursorAsync(asList(localCursor.getId()), new SingleResultCallback<Void>() {
143+
connection.killCursorAsync(singletonList(localCursor.getId()), new SingleResultCallback<Void>() {
144144
@Override
145145
public void onResult(final Void result, final Throwable t) {
146146
connection.release();

0 commit comments

Comments
 (0)