THRIFT-675. java: Generated findByValue() should just switch on value instead of...
authorBryan Duxbury <bryanduxbury@apache.org>
Sat, 16 Jan 2010 09:13:20 +0000 (09:13 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Sat, 16 Jan 2010 09:13:20 +0000 (09:13 +0000)
commitc4ad9be578f22e240b28af2ca89f83ac18179cd1
tree8c0b6665ec5379a61bffb0694a090d750a3b649e
parentdb57aa0df9f83ff035bedb7e0afc447d0214acc0
THRIFT-675. java: Generated findByValue() should just switch on value instead of mapping

This patch removes the map-based enum value lookup and replaces it with a static switch statement.

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