Skip to content

Commit 26f72b9

Browse files
committed
Add generic type in test to fix compiler warning
1 parent 8195050 commit 26f72b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver-sync/src/test/functional/com/mongodb/client/ClientSideEncryptionCorpusTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ public void testCorpus() throws IOException, URISyntaxException {
213213
assertEquals(corpus, corpusDecrypted);
214214

215215
// Step 8: check the document with an unencrypted client
216-
MongoCollection coll = client.getDatabase("db").getCollection("coll", BsonDocument.class);
217-
BsonDocument corpusEncryptedActual = (BsonDocument) coll.find(new BsonDocument()).first();
216+
MongoCollection<BsonDocument> coll = client.getDatabase("db").getCollection("coll", BsonDocument.class);
217+
BsonDocument corpusEncryptedActual = coll.find(new BsonDocument()).first();
218218
BsonDocument corpusEncryptedExpected = bsonDocumentFromPath("corpus-encrypted.json");
219219

220220
for (String field : corpusEncryptedExpected.keySet()) {

0 commit comments

Comments
 (0)