From cf43f48886ac5f725951b6f41cec6e52840e1613 Mon Sep 17 00:00:00 2001 From: Aliaksei Savanchuk Date: Mon, 20 Apr 2020 22:07:07 +0300 Subject: [PATCH] Fix #150. Remove wars about source files with the same names The Jacoco fix in 4081720909b brought new code that tries to find the source file in case other ways didn't work. To do this it creates a map of file names to look for. And it logs warnings in case of any duplicates. Becase there may be a lot of them a log would quite apace, we remove the warnings. --- .../plugins/coverage/source/DefaultSourceFileResolver.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/io/jenkins/plugins/coverage/source/DefaultSourceFileResolver.java b/src/main/java/io/jenkins/plugins/coverage/source/DefaultSourceFileResolver.java index 702343968..76d0f77eb 100644 --- a/src/main/java/io/jenkins/plugins/coverage/source/DefaultSourceFileResolver.java +++ b/src/main/java/io/jenkins/plugins/coverage/source/DefaultSourceFileResolver.java @@ -122,7 +122,6 @@ private Map createSourceFileMapping(FilePath workspace, TaskLi FilePath::getName, Function.identity(), (path1, path2) -> { - listener.getLogger().println("WARNING: Duplicate filename found: " + path1.getName()); return path1; } ));