Skip to content

Commit

Permalink
Remove value copy from controller into outputChannels rusefi#4095
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed May 9, 2022
1 parent fc3b4f1 commit 400b3c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified java_tools/ConfigDefinition.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class VariableRegistry {
public Map<String, Integer> intValues = new HashMap<>();

private final Map<String, String> cAllDefinitions = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
// todo: move thid logic to JavaFieldsConsumer since that's the consumer?
private final Map<String, String> javaDefinitions = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);

public void readPrependValues(String prependFile) throws IOException {
Expand Down Expand Up @@ -219,7 +220,8 @@ private void tryToRegisterAsInteger(String var, String value) {
} catch (NumberFormatException e) {
//SystemOut.println("Not an integer: " + value);

if (!var.trim().endsWith(ENUM_SUFFIX)) {
if (!var.trim().endsWith(ENUM_SUFFIX) &&
!var.trim().endsWith(FULL_JAVA_ENUM)) {
if (isQuoted(value, '"')) {
// quoted and not with enum suffix means plain string define statement
javaDefinitions.put(var, "\tpublic static final String " + var + " = " + value + ";" + ToolUtil.EOL);
Expand Down

0 comments on commit 400b3c3

Please sign in to comment.