Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Stop using deprecated Util#join (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored May 30, 2021
1 parent 2502628 commit d25cd61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/hudson/plugins/jacoco/JacocoPublisher.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import hudson.Extension;
import hudson.FilePath;
import hudson.Launcher;
import hudson.Util;
import hudson.model.Result;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
Expand All @@ -26,6 +25,7 @@
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import jenkins.MasterToSlaveFileCallable;
import jenkins.model.Jenkins;
Expand Down Expand Up @@ -625,7 +625,7 @@ public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath filePath, @Nonnull
logger.println("[JaCoCo plugin] Number of found exec files for pattern " + execPattern + ": " + matchedExecFiles.size());
logger.print("[JaCoCo plugin] Saving matched execfiles: ");
reportDir.addExecFiles(matchedExecFiles);
logger.print(" " + Util.join(matchedExecFiles," "));
logger.print(" " + matchedExecFiles.stream().map(Object::toString).collect(Collectors.joining(" ")));
FilePath[] matchedClassDirs = resolveDirPaths(filePath, taskListener, classPattern);
logger.print("\n[JaCoCo plugin] Saving matched class directories for class-pattern: " + classPattern + ": ");
final String warning = "\n[JaCoCo plugin] WARNING: You are using directory patterns with trailing /, /* or /** . This will most likely" +
Expand Down

0 comments on commit d25cd61

Please sign in to comment.