Merge pull request #39989 from christophstrobl
* gh-39989: Polish "Upgrade to MongoDB 5.0" Upgrade to MongoDB 5.0 Closes gh-39989
This commit is contained in:
commit
ab0a7c9c06
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -129,10 +129,8 @@ public class MongoReactiveAutoConfiguration {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private boolean isCustomTransportConfiguration(MongoClientSettings settings) {
|
||||
return settings != null
|
||||
&& (settings.getTransportSettings() != null || settings.getStreamFactoryFactory() != null);
|
||||
return settings != null && settings.getTransportSettings() != null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -230,7 +230,6 @@ class MongoReactiveAutoConfigurationTests {
|
|||
assertThat(settings.getApplicationName()).isEqualTo("custom-transport-settings");
|
||||
assertThat(settings.getTransportSettings())
|
||||
.isSameAs(SimpleTransportSettingsCustomizerConfig.transportSettings);
|
||||
assertThat(settings.getStreamFactoryFactory()).isNull();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -1286,7 +1286,7 @@ bom {
|
|||
releaseNotes("https://github.com/mockito/mockito/releases/tag/v{version}")
|
||||
}
|
||||
}
|
||||
library("MongoDB", "4.11.1") {
|
||||
library("MongoDB", "5.0.0") {
|
||||
group("org.mongodb") {
|
||||
modules = [
|
||||
"bson",
|
||||
|
|
Loading…
Reference in New Issue