From 4c990da26e0593e48e04511cdf2c7d594bd3b30c Mon Sep 17 00:00:00 2001 From: andreika-git Date: Wed, 27 Sep 2023 23:14:12 +0300 Subject: [PATCH] fix EnumsReader --- .../enum_to_string/src/main/java/com/rusefi/EnumsReader.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java_tools/enum_to_string/src/main/java/com/rusefi/EnumsReader.java b/java_tools/enum_to_string/src/main/java/com/rusefi/EnumsReader.java index 650f944308..88c4058d6f 100644 --- a/java_tools/enum_to_string/src/main/java/com/rusefi/EnumsReader.java +++ b/java_tools/enum_to_string/src/main/java/com/rusefi/EnumsReader.java @@ -90,6 +90,7 @@ public class EnumsReader { isInsideEnum = true; enumName = null; isEnumClass = false; + lastNumericValue = -1; } else if (line.startsWith(ENUMCLASS_PREFIX)) { if (log.debugEnabled()) log.debug(" EnumsReader: Entering fancy enum class"); @@ -97,6 +98,7 @@ public class EnumsReader { withAutoValue = false; isInsideEnum = true; isEnumClass = true; + lastNumericValue = -1; int colonIndex = line.indexOf(":"); if (colonIndex == -1) throw new IllegalStateException("color and Type not located in " + line);