Skip to content

Commit a0e11cb

Browse files
salomvaryrozza
authored andcommitted
Fix getDefaultCodecRegistry() example
MongoClient.getDefaultCodecRegistry() no longer seems to exist
1 parent 84dcbd6 commit a0e11cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/content/driver/getting-started/quick-start-pojo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ The following example will combine the default codec registry, with the `PojoCod
140140
`Codec`s:
141141

142142
```java
143-
CodecRegistry pojoCodecRegistry = fromRegistries(MongoClient.getDefaultCodecRegistry(),
143+
CodecRegistry pojoCodecRegistry = fromRegistries(MongoClientSettings.getDefaultCodecRegistry(),
144144
fromProviders(PojoCodecProvider.builder().automatic(true).build()));
145145
```
146146

0 commit comments

Comments
 (0)