use invalid default value to detect missing initializing

This commit is contained in:
Volker Berlin 2019-06-23 20:42:11 +02:00
parent fbdd0eb3d0
commit b90d7e1dea

View File

@ -24,7 +24,7 @@ class Function {
int id;
int typeId;
int typeId = -1; // -1 not init, use an invalid value to fail hard if it used without init
final StringBuilder output = new StringBuilder();
}