File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
driver-core/src/main/com/mongodb/operation Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3131import static com .mongodb .assertions .Assertions .notNull ;
3232import static com .mongodb .internal .async .ErrorHandlingResultCallback .errorHandlingCallback ;
3333import static com .mongodb .operation .CursorHelper .getNumberToReturn ;
34- import static java .util .Arrays . asList ;
34+ import static java .util .Collections . singletonList ;
3535
3636class 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 ();
You can’t perform that action at this time.
0 commit comments