From db286e15c21cf5722f50224214c10c0747ff9e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20G=C3=B3mez?= Date: Fri, 2 Feb 2024 13:55:38 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Honnix --- .../src/main/java/org/flyte/jflyte/utils/ProjectClosure.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jflyte-utils/src/main/java/org/flyte/jflyte/utils/ProjectClosure.java b/jflyte-utils/src/main/java/org/flyte/jflyte/utils/ProjectClosure.java index 99fc871e..33d51852 100644 --- a/jflyte-utils/src/main/java/org/flyte/jflyte/utils/ProjectClosure.java +++ b/jflyte-utils/src/main/java/org/flyte/jflyte/utils/ProjectClosure.java @@ -94,7 +94,7 @@ public abstract class ProjectClosure { public abstract Map launchPlans(); - private static final Escaper escaper = Escapers.builder().addEscape('$', "\\$").build(); + private static final Escaper ESCAPER = Escapers.builder().addEscape('$', "\\$").build(); ProjectClosure applyCustom(JFlyteCustom custom) { Map rewrittenTaskSpecs = @@ -487,7 +487,7 @@ static TaskTemplate createTaskTemplateForRunnableTask(RunnableTask task, String "jflyte", "execute", "--task", - escaper.escape(task.getName()), + ESCAPER.escape(task.getName()), "--inputs", "{{.input}}", "--outputPrefix",