File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
driver-reactive-streams/src/main/com/mongodb/reactivestreams/client/internal/crypt
driver-sync/src/main/com/mongodb/client/internal Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -203,10 +203,10 @@ public Mono<BsonValue> decryptExplicitly(final BsonBinary value) {
203
203
@ SuppressWarnings ("try" )
204
204
public void close () {
205
205
//noinspection EmptyTryBlock
206
- try (MongoCrypt mongoCrypt = this .mongoCrypt ;
207
- CommandMarker commandMarker = this .commandMarker ;
208
- MongoClient internalClient = this .internalClient ;
209
- KeyManagementService keyManagementService = this .keyManagementService
206
+ try (MongoCrypt ignored = this .mongoCrypt ;
207
+ CommandMarker ignored1 = this .commandMarker ;
208
+ MongoClient ignored2 = this .internalClient ;
209
+ KeyManagementService ignored3 = this .keyManagementService
210
210
) {
211
211
// just using try-with-resources to ensure they all get closed, even in the case of exceptions
212
212
}
Original file line number Diff line number Diff line change 19
19
import com .mongodb .MongoClientException ;
20
20
import com .mongodb .MongoException ;
21
21
import com .mongodb .MongoInternalException ;
22
- import com .mongodb .assertions .Assertions ;
23
22
import com .mongodb .client .MongoClient ;
24
23
import com .mongodb .client .model .vault .DataKeyOptions ;
25
24
import com .mongodb .client .model .vault .EncryptOptions ;
@@ -232,9 +231,9 @@ BsonValue decryptExplicitly(final BsonBinary value) {
232
231
@ SuppressWarnings ("try" )
233
232
public void close () {
234
233
//noinspection EmptyTryBlock
235
- try (MongoCrypt mongoCrypt = this .mongoCrypt ;
236
- CommandMarker commandMarker = this .commandMarker ;
237
- MongoClient internalClient = this .internalClient
234
+ try (MongoCrypt ignored = this .mongoCrypt ;
235
+ CommandMarker ignored1 = this .commandMarker ;
236
+ MongoClient ignored2 = this .internalClient
238
237
) {
239
238
// just using try-with-resources to ensure they all get closed, even in the case of exceptions
240
239
}
You can’t perform that action at this time.
0 commit comments