fix EnumsReader

This commit is contained in:
andreika-git 2023-09-27 23:14:12 +03:00 committed by rusefillc
parent ca15cd3110
commit 4c990da26e
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,7 @@ public class EnumsReader {
isInsideEnum = true; isInsideEnum = true;
enumName = null; enumName = null;
isEnumClass = false; isEnumClass = false;
lastNumericValue = -1;
} else if (line.startsWith(ENUMCLASS_PREFIX)) { } else if (line.startsWith(ENUMCLASS_PREFIX)) {
if (log.debugEnabled()) if (log.debugEnabled())
log.debug(" EnumsReader: Entering fancy enum class"); log.debug(" EnumsReader: Entering fancy enum class");
@ -97,6 +98,7 @@ public class EnumsReader {
withAutoValue = false; withAutoValue = false;
isInsideEnum = true; isInsideEnum = true;
isEnumClass = true; isEnumClass = true;
lastNumericValue = -1;
int colonIndex = line.indexOf(":"); int colonIndex = line.indexOf(":");
if (colonIndex == -1) if (colonIndex == -1)
throw new IllegalStateException("color and Type not located in " + line); throw new IllegalStateException("color and Type not located in " + line);