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 31
31
import static com .mongodb .assertions .Assertions .notNull ;
32
32
import static com .mongodb .internal .async .ErrorHandlingResultCallback .errorHandlingCallback ;
33
33
import static com .mongodb .operation .CursorHelper .getNumberToReturn ;
34
- import static java .util .Arrays . asList ;
34
+ import static java .util .Collections . singletonList ;
35
35
36
36
class AsyncQueryBatchCursor <T > implements AsyncBatchCursor <T > {
37
37
@@ -140,7 +140,7 @@ private void killCursor() {
140
140
connectionSource .getConnection (new SingleResultCallback <AsyncConnection >() {
141
141
@ Override
142
142
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 >() {
144
144
@ Override
145
145
public void onResult (final Void result , final Throwable t ) {
146
146
connection .release ();
You can’t perform that action at this time.
0 commit comments