Merge pull request #62 from mmitche/fix-join

Using StringUtils.join (String.join not available in JDK 7)
This commit is contained in:
Arjun Roy Chaudhuri 2016-10-27 15:03:53 -07:00 committed by GitHub
commit f2624e3603
1 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ import java.util.List;
import java.util.Set;
import java.util.logging.Level;
import jenkins.model.Jenkins;
import org.apache.commons.lang.StringUtils;
/**
* Performs a few types of verification:
@ -167,7 +168,7 @@ public final class AzureVMCloudVerificationTask extends AsyncPeriodicWork {
agentTemplate.setTemplateStatusDetails("");
}
else {
String details = String.join("\n", errors);
String details = StringUtils.join(errors, "\n");
LOGGER.log(Level.INFO, "AzureVMCloudVerificationTask: execute: {0} could not be verified:\n{1}",
new Object [] { templateName, details });
// Set the status details to the set of messages