File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
driver-core/src/test/unit/com/mongodb Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -186,14 +186,13 @@ class MongoClientSettingsSpecification extends Specification {
186
186
.readConcern(ReadConcern . LOCAL )
187
187
.applicationName(' app1' )
188
188
.addCommandListener(commandListener)
189
- .applyToLoggerSettings(builder -> builder. maxDocumentLength(10 ))
190
- .applyToClusterSettings(new Block<ClusterSettings.Builder > () {
191
- @Override
192
- void apply (final ClusterSettings.Builder builder ) {
193
- builder. hosts([new ServerAddress (' localhost' )])
194
- .requiredReplicaSetName(' test' )
195
- }
196
- })
189
+ .applyToLoggerSettings { LoggerSettings.Builder builder ->
190
+ builder. maxDocumentLength(10 )
191
+ }
192
+ .applyToClusterSettings { ClusterSettings.Builder builder ->
193
+ builder. hosts([new ServerAddress (' localhost' )])
194
+ .requiredReplicaSetName(' test' )
195
+ }
197
196
.credential(credential)
198
197
.codecRegistry(codecRegistry)
199
198
.compressorList(compressorList)
You can’t perform that action at this time.
0 commit comments