Formatting
This commit is contained in:
@@ -344,6 +344,7 @@ public class ConfigurationPropertiesReportEndpoint
|
||||
}
|
||||
super.serializeAsField(pojo, jgen, provider, writer);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -395,4 +396,5 @@ public class ConfigurationPropertiesReportEndpoint
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -104,8 +104,8 @@ public class DataSourcePublicMetrics implements PublicMetrics {
|
||||
if (primary) {
|
||||
return "datasource.primary";
|
||||
}
|
||||
if (name.length() > DATASOURCE_SUFFIX.length()
|
||||
&& name.toLowerCase(Locale.ENGLISH).endsWith(DATASOURCE_SUFFIX.toLowerCase())) {
|
||||
if (name.length() > DATASOURCE_SUFFIX.length() && name.toLowerCase(Locale.ENGLISH)
|
||||
.endsWith(DATASOURCE_SUFFIX.toLowerCase())) {
|
||||
name = name.substring(0, name.length() - DATASOURCE_SUFFIX.length());
|
||||
}
|
||||
return "datasource." + name;
|
||||
|
||||
@@ -73,6 +73,7 @@ public class FlywayEndpoint extends AbstractEndpoint<List<FlywayReport>> {
|
||||
public static class FlywayReport {
|
||||
|
||||
private final String name;
|
||||
|
||||
private final List<FlywayMigration> migrations;
|
||||
|
||||
public FlywayReport(String name, List<FlywayMigration> migrations) {
|
||||
|
||||
@@ -142,6 +142,7 @@ public class MvcEndpointSecurityInterceptor extends HandlerInterceptorAdapter {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -325,6 +325,7 @@ public class EndpointWebMvcManagementContextConfigurationTests {
|
||||
TestMetricsMvcEndpoint(MetricsEndpoint delegate) {
|
||||
super(delegate);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static class TestAuditEventsMvcEndpoint extends AuditEventsMvcEndpoint {
|
||||
@@ -332,6 +333,7 @@ public class EndpointWebMvcManagementContextConfigurationTests {
|
||||
TestAuditEventsMvcEndpoint(AuditEventRepository auditEventRepository) {
|
||||
super(auditEventRepository);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static class TestShutdownMvcEndpoint extends ShutdownMvcEndpoint {
|
||||
@@ -339,6 +341,7 @@ public class EndpointWebMvcManagementContextConfigurationTests {
|
||||
TestShutdownMvcEndpoint(ShutdownEndpoint delegate) {
|
||||
super(delegate);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -277,4 +277,5 @@ public class HealthMvcEndpointTests {
|
||||
Health health = ((ResponseEntity<Health>) result).getBody();
|
||||
assertThat(health.getStatus() == Status.DOWN).isTrue();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user