Skip to content

Commit cd6fe46

Browse files
committed
formatting
1 parent 546083a commit cd6fe46

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayMetricsAutoConfiguration.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
import org.springframework.web.reactive.DispatcherHandler;
4040

4141
@Configuration(proxyBeanMethods = false)
42-
@ConditionalOnProperty(name = GatewayProperties.PREFIX + ".enabled",
43-
matchIfMissing = true)
42+
@ConditionalOnProperty(name = GatewayProperties.PREFIX + ".enabled", matchIfMissing = true)
4443
@EnableConfigurationProperties(GatewayMetricsProperties.class)
4544
@AutoConfigureBefore(HttpHandlerAutoConfiguration.class)
4645
@AutoConfigureAfter({ MetricsAutoConfiguration.class, MeterRegistryAutoConfiguration.class })
@@ -69,8 +68,7 @@ public PropertiesTagsProvider propertiesTagsProvider(GatewayMetricsProperties ga
6968
// encompass more than just the filter
7069
public GatewayMetricsFilter gatewayMetricFilter(MeterRegistry meterRegistry,
7170
List<GatewayTagsProvider> tagsProviders, GatewayProperties properties) {
72-
return new GatewayMetricsFilter(meterRegistry, tagsProviders,
73-
properties.getMetrics().getPrefix());
71+
return new GatewayMetricsFilter(meterRegistry, tagsProviders, properties.getMetrics().getPrefix());
7472
}
7573

7674
}

spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayProperties.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ public void setMetrics(Metrics metrics) {
117117
public String toString() {
118118
return new ToStringCreator(this).append("routes", routes).append("defaultFilters", defaultFilters)
119119
.append("streamingMediaTypes", streamingMediaTypes)
120-
.append("failOnRouteDefinitionError", failOnRouteDefinitionError)
121-
.append("metrics", metrics).toString();
120+
.append("failOnRouteDefinitionError", failOnRouteDefinitionError).append("metrics", metrics).toString();
122121

123122
}
124123

@@ -157,8 +156,7 @@ public void setPrefix(String prefix) {
157156

158157
@Override
159158
public String toString() {
160-
return new ToStringCreator(this).append("enabled", enabled)
161-
.append("prefix", prefix).toString();
159+
return new ToStringCreator(this).append("enabled", enabled).append("prefix", prefix).toString();
162160

163161
}
164162

0 commit comments

Comments
 (0)