mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-09 10:59:11 +00:00
Merge branch '4.0.x' into 4.1.x
Closes gh-51599
This commit is contained in:
-1
@@ -65,7 +65,6 @@ public class DataSourcePoolMetrics implements MeterBinder {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // Lambda isn't detected with the correct nullability
|
||||
public void bindTo(MeterRegistry registry) {
|
||||
if (this.metadataProvider.getDataSourcePoolMetadata(this.dataSource) != null) {
|
||||
bindPoolMetadata(registry, "active",
|
||||
|
||||
-7
@@ -38,31 +38,24 @@ import static org.mockito.BDDMockito.given;
|
||||
class CompositeDataSourcePoolMetadataProviderTests {
|
||||
|
||||
@Mock
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
private DataSourcePoolMetadataProvider firstProvider;
|
||||
|
||||
@Mock
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
private DataSourcePoolMetadata first;
|
||||
|
||||
@Mock
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
private DataSource firstDataSource;
|
||||
|
||||
@Mock
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
private DataSourcePoolMetadataProvider secondProvider;
|
||||
|
||||
@Mock
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
private DataSourcePoolMetadata second;
|
||||
|
||||
@Mock
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
private DataSource secondDataSource;
|
||||
|
||||
@Mock
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
private DataSource unknownDataSource;
|
||||
|
||||
@BeforeEach
|
||||
|
||||
Reference in New Issue
Block a user