fix EnumsReader
This commit is contained in:
parent
ca15cd3110
commit
4c990da26e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue