From 691cdc0a7a316676263c7ec062a4033809eaa62d Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Thu, 11 Jan 2024 17:54:19 +0100 Subject: [PATCH] Ignore SpotBugs warning. --- .../edu/hm/hafner/analysis/AntModuleDetectorTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/edu/hm/hafner/analysis/AntModuleDetectorTest.java b/src/test/java/edu/hm/hafner/analysis/AntModuleDetectorTest.java index fd5e65469..d36d670ee 100644 --- a/src/test/java/edu/hm/hafner/analysis/AntModuleDetectorTest.java +++ b/src/test/java/edu/hm/hafner/analysis/AntModuleDetectorTest.java @@ -4,10 +4,10 @@ import org.junit.jupiter.api.Test; import edu.hm.hafner.analysis.ModuleDetector.FileSystem; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import static org.assertj.core.api.Assertions.*; -import static org.mockito.ArgumentMatchers.any; -import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.ArgumentMatchers.*; import static org.mockito.Mockito.*; class AntModuleDetectorTest extends AbstractModuleDetectorTest { @@ -19,7 +19,7 @@ String getPathPrefix() { return PATH_PREFIX_ANT; } - @Override + @Override @SuppressFBWarnings("NM") String getFileName() { return getPathPrefix() + "something.txt"; } @@ -44,4 +44,4 @@ void shouldIdentifyModuleByReadingAntProjectFile() { assertThat(detector.guessModuleName(PREFIX + "path/to/something.txt")) .isEqualTo(StringUtils.EMPTY); } -} \ No newline at end of file +}