From: brett l. <bre...@gm...> - 2011-07-04 20:12:51
|
I'm positive I'm missing something here. In both Token and SpecialProperty, we're defining some static class variables, such as: private static int index = 0; Then, in the init() method, we're re-defaulting it to the same value we've already declared, such as: // initialize the special properties static variables public static void init() { tokenMap = new HashMap<String, TokenI>(); index = 0; log.debug("Init token static variables"); } Why is this necessary? Is the defined default value insufficient in some way that isn't immediately obvious? ---Brett. |