From 3e437adcc29f31b966aca07fc110e76aae56cb27 Mon Sep 17 00:00:00 2001 From: Jon Schneider Date: Thu, 29 Nov 2018 10:23:07 -0600 Subject: [PATCH] Polish --- .../io/micrometer/core/aop/TimedAspectTest.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/micrometer-core/src/test/java/io/micrometer/core/aop/TimedAspectTest.java b/micrometer-core/src/test/java/io/micrometer/core/aop/TimedAspectTest.java index 187a09ebdc..b73bba30fc 100644 --- a/micrometer-core/src/test/java/io/micrometer/core/aop/TimedAspectTest.java +++ b/micrometer-core/src/test/java/io/micrometer/core/aop/TimedAspectTest.java @@ -15,12 +15,6 @@ */ package io.micrometer.core.aop; -import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.assertThatExceptionOfType; - -import org.junit.jupiter.api.Test; -import org.springframework.aop.aspectj.annotation.AspectJProxyFactory; - import io.micrometer.core.annotation.Timed; import io.micrometer.core.instrument.Meter.Id; import io.micrometer.core.instrument.MeterRegistry; @@ -29,6 +23,12 @@ import io.micrometer.core.instrument.distribution.pause.PauseDetector; import io.micrometer.core.instrument.search.MeterNotFoundException; import io.micrometer.core.instrument.simple.SimpleMeterRegistry; +import io.micrometer.core.lang.NonNull; +import org.junit.jupiter.api.Test; +import org.springframework.aop.aspectj.annotation.AspectJProxyFactory; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatExceptionOfType; class TimedAspectTest { @Test @@ -76,8 +76,11 @@ private FailingMeterRegistry() { super(); } + @NonNull @Override - protected Timer newTimer(Id id, DistributionStatisticConfig distributionStatisticConfig, PauseDetector pauseDetector) { + protected Timer newTimer(@NonNull Id id, + @NonNull DistributionStatisticConfig distributionStatisticConfig, + @NonNull PauseDetector pauseDetector) { throw new RuntimeException(); } }