mirror of https://github.com/rusefi/rusefi.git
Technical debt: ENUM_32_BITS #3874
This commit is contained in:
parent
061917f7ab
commit
d4323d370a
Binary file not shown.
|
@ -49,7 +49,9 @@ public class ToJavaEnum {
|
||||||
int index = 0;
|
int index = 0;
|
||||||
for (Value value : sorted) {
|
for (Value value : sorted) {
|
||||||
int numericValue = value.getIntValueMaybeResolve(registry);
|
int numericValue = value.getIntValueMaybeResolve(registry);
|
||||||
if (index != numericValue && !value.getName().startsWith("Force_4_bytes_size"))
|
if (index != numericValue
|
||||||
|
&& !value.getName().startsWith("Force_2_bytes_size")
|
||||||
|
&& !value.getName().startsWith("Force_4_bytes_size"))
|
||||||
throw new IllegalStateException("Got explicit ordinal " + numericValue + " instead of ordinal " + index + " in " + value);
|
throw new IllegalStateException("Got explicit ordinal " + numericValue + " instead of ordinal " + index + " in " + value);
|
||||||
sb.append("\t" + value.getName() + ",\n");
|
sb.append("\t" + value.getName() + ",\n");
|
||||||
index++;
|
index++;
|
||||||
|
|
Loading…
Reference in New Issue