Formatting

This commit is contained in:
Phillip Webb
2018-05-04 12:00:50 -07:00
parent 1314aaa368
commit 0a0247975c
36 changed files with 59 additions and 28 deletions

View File

@@ -344,6 +344,7 @@ public class ConfigurationPropertiesReportEndpoint
}
super.serializeAsField(pojo, jgen, provider, writer);
}
}
/**
@@ -395,4 +396,5 @@ public class ConfigurationPropertiesReportEndpoint
}
}
}

View File

@@ -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;

View File

@@ -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) {

View File

@@ -142,6 +142,7 @@ public class MvcEndpointSecurityInterceptor extends HandlerInterceptorAdapter {
}
return false;
}
}
}

View File

@@ -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);
}
}
}

View File

@@ -277,4 +277,5 @@ public class HealthMvcEndpointTests {
Health health = ((ResponseEntity<Health>) result).getBody();
assertThat(health.getStatus() == Status.DOWN).isTrue();
}
}