Well, you didn't copy the initialization of codeUnitCount :D. Seriously though, it's not required for either here, since fields are auto-initialized to 0.