dockyard/pg_array_parser — pull request #4 by mauricio (2012-09-04 14:53:14+00:00)
Title: Thread safety for Java implementation some optimizations

I have made the implementation thread safe, the current implementation stores data in instance variables and the same module instance is reused on all calls, under a multi-threaded environment it would break and exhibit lost updates due to the main string array variable being set by another calling thread.

Also removed calls that turn the chars into strings, the chars can be directly added to the StringBuilder without transformations, and changed some of the ifs to switch/case statements that are more in line to the comparisons being done.