THRIFT-379. java: Print enum value names
authorBryan Duxbury <bryanduxbury@apache.org>
Wed, 18 Mar 2009 03:14:56 +0000 (03:14 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Wed, 18 Mar 2009 03:14:56 +0000 (03:14 +0000)
commit3696d643d0bf233fc2b57e5941cf8d416999a166
tree3b85b27ac9df42325cea9e8e9b36816cc2a603ed
parente8ee12242dbb8fa2d6189288f095b82912897316
THRIFT-379. java: Print enum value names

This patch adds a new generated map of enum values to their respective names to each generated enum class, and then consumes that in the toString method to print the names when possible.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@755464 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_java_generator.cc