From d2e21c1c9eeb84ef392802bd557fd4c3ab747162 Mon Sep 17 00:00:00 2001 From: gtoison Date: Fri, 29 Sep 2023 14:02:03 +0200 Subject: [PATCH] Fixed issue reported by sonar: use isEmpty() instead of hasSize(0) --- .../org/sonar/plugins/findbugs/FindbugsProfileImporterTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/sonar/plugins/findbugs/FindbugsProfileImporterTest.java b/src/test/java/org/sonar/plugins/findbugs/FindbugsProfileImporterTest.java index ff7610be..655cbf33 100644 --- a/src/test/java/org/sonar/plugins/findbugs/FindbugsProfileImporterTest.java +++ b/src/test/java/org/sonar/plugins/findbugs/FindbugsProfileImporterTest.java @@ -195,7 +195,7 @@ void profileImport(String profilePath, int expectedSize) { Collection results = profile.rules(); assertThat(results).hasSize(expectedSize); - assertThat(logTester.getLogs(Level.ERROR)).hasSize(0); + assertThat(logTester.getLogs(Level.ERROR)).isEmpty(); assertThat(logTester.getLogs(Level.WARN)).hasSize(1); }