From 0841b3e21cffc39385e8e31522e6a9c101edf6ac Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Fri, 8 Apr 2016 13:53:43 -0400 Subject: [PATCH] [JENKINS-26156] Calling BodyInvoker.withDisplayName(null) was always a no-op, and will soon be a FindBugs warning. --- .../plugins/workflow/support/steps/ExecutorStepExecution.java | 1 - .../plugins/workflow/support/steps/WorkspaceStepExecution.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java b/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java index 440ef708..9f855113 100644 --- a/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java +++ b/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java @@ -466,7 +466,6 @@ private final class PlaceholderExecutable implements ContinuableExecutable { listener.getLogger().println("Running on " + computer.getDisplayName() + " in " + workspace); // TODO hyperlink context.newBodyInvoker() .withContexts(exec, computer, env, workspace) - .withDisplayName(null) .withCallback(new Callback(cookie, lease)) .start(); LOGGER.log(FINE, "started {0}", cookie); diff --git a/src/main/java/org/jenkinsci/plugins/workflow/support/steps/WorkspaceStepExecution.java b/src/main/java/org/jenkinsci/plugins/workflow/support/steps/WorkspaceStepExecution.java index 078bf4d2..af244206 100644 --- a/src/main/java/org/jenkinsci/plugins/workflow/support/steps/WorkspaceStepExecution.java +++ b/src/main/java/org/jenkinsci/plugins/workflow/support/steps/WorkspaceStepExecution.java @@ -65,7 +65,6 @@ public boolean start() throws Exception { body = getContext().newBodyInvoker() .withContext(workspace) .withCallback(new Callback(lease)) - .withDisplayName(null) .start(); return false; }