danieltmiles/echolocation — pull request #1 by darshan- (2011-11-11 04:22:23+00:00)
Title: Workaround for 64K max method size limitation

Java has a 64K max method size [1], so I just split the initialization into separate methods. This means the data is no longer static, but as you mentioned, that doesn't make much difference. You just initialize one instance of the class, then you can access the data in it.

I switched the composite key separator from ':' to '_', because that way the methods can use the same name.

I built the constructor up in string and then output it, so that I only had to loop over the data once. You might prefer the somewhat cleaner method of looping over the keySet a second time to generate the constructor.

[1] http://stackoverflow.com/questions/243097/javac-error-code-too-large