This is an automated email from the ASF dual-hosted git repository. sunnianjun pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push: new feb53d184f3 Fix sonar issue on MethodTimeRecorderTest (#32619) feb53d184f3 is described below commit feb53d184f3b10e7390280ab1e733938333b4688 Author: Liang Zhang <zhangli...@apache.org> AuthorDate: Thu Aug 22 10:14:57 2024 +0800 Fix sonar issue on MethodTimeRecorderTest (#32619) --- .../agent/plugin/core/recorder/MethodTimeRecorderTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/plugins/core/src/test/java/org/apache/shardingsphere/agent/plugin/core/recorder/MethodTimeRecorderTest.java b/agent/plugins/core/src/test/java/org/apache/shardingsphere/agent/plugin/core/recorder/MethodTimeRecorderTest.java index fcb931ac297..face515fe6d 100644 --- a/agent/plugins/core/src/test/java/org/apache/shardingsphere/agent/plugin/core/recorder/MethodTimeRecorderTest.java +++ b/agent/plugins/core/src/test/java/org/apache/shardingsphere/agent/plugin/core/recorder/MethodTimeRecorderTest.java @@ -31,7 +31,7 @@ import static org.hamcrest.Matchers.greaterThanOrEqualTo; class MethodTimeRecorderTest { @Test - void assertGetElapsedTimeAndCleanWithRecorded() throws NoSuchMethodException { + void assertGetElapsedTimeAndCleanWithRecorded() { MethodTimeRecorder methodTimeRecorder = new MethodTimeRecorder(AgentAdvice.class); TargetAdviceMethod method = new TargetAdviceMethod("test"); methodTimeRecorder.recordNow(method); @@ -40,7 +40,7 @@ class MethodTimeRecorderTest { } @Test - void assertGetElapsedTimeAndCleanWithoutRecorded() throws NoSuchMethodException { + void assertGetElapsedTimeAndCleanWithoutRecorded() { TargetAdviceMethod method = new TargetAdviceMethod("test"); assertThat(new MethodTimeRecorder(AgentAdvice.class).getElapsedTimeAndClean(method), is(0L)); }