From d85bdfb23c5c30a9d7659a631e9be0232d432a71 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 4 Feb 2020 10:19:01 +0100 Subject: [PATCH] Fix checkstyle violation --- .../boot/actuate/metrics/web/servlet/WebMvcMetricsFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetricsFilter.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetricsFilter.java index df3fc1f506..d020688479 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetricsFilter.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetricsFilter.java @@ -144,7 +144,8 @@ public class WebMvcMetricsFilter extends OncePerRequestFilter { Builder builder = this.autoTimer.builder(this.metricName); timerSample.stop(getTimer(builder, handler, request, response, exception)); } - } else { + } + else { for (Timed annotation : annotations) { Builder builder = Timer.builder(annotation, this.metricName); timerSample.stop(getTimer(builder, handler, request, response, exception));