From b46c7b0bcffdab76cc45351a8838b88281ba71d5 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sat, 17 Jun 2023 19:09:58 -0400 Subject: [PATCH] only:code reuse --- .../src/main/java/com/rusefi/output/JavaSensorsConsumer.java | 4 ++-- .../src/main/java/com/rusefi/VariableRegistry.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java_tools/configuration_definition/src/main/java/com/rusefi/output/JavaSensorsConsumer.java b/java_tools/configuration_definition/src/main/java/com/rusefi/output/JavaSensorsConsumer.java index ae435c3348..307b757e2a 100644 --- a/java_tools/configuration_definition/src/main/java/com/rusefi/output/JavaSensorsConsumer.java +++ b/java_tools/configuration_definition/src/main/java/com/rusefi/output/JavaSensorsConsumer.java @@ -1,8 +1,8 @@ package com.rusefi.output; import com.rusefi.ConfigField; -import com.rusefi.ConfigFieldImpl; import com.rusefi.ReaderState; +import com.rusefi.VariableRegistry; import java.io.IOException; @@ -66,7 +66,7 @@ public class JavaSensorsConsumer implements ConfigurationConsumer { } public static String quote(String string) { - return "\"" + string + "\""; + return VariableRegistry.quote(string); } public String getContent() { diff --git a/java_tools/enum_to_string/src/main/java/com/rusefi/VariableRegistry.java b/java_tools/enum_to_string/src/main/java/com/rusefi/VariableRegistry.java index 9693a1e7bf..c29908f884 100644 --- a/java_tools/enum_to_string/src/main/java/com/rusefi/VariableRegistry.java +++ b/java_tools/enum_to_string/src/main/java/com/rusefi/VariableRegistry.java @@ -140,7 +140,7 @@ public class VariableRegistry { return getHumanSortedTsKeyValueString(valueNameById); } - private static String quote(String string) { + public static String quote(String string) { return "\"" + string + "\""; }