THRIFT-543. java: Generate normal style java files should respect the "optional"...
authorBryan Duxbury <bryanduxbury@apache.org>
Tue, 14 Jul 2009 01:42:09 +0000 (01:42 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Tue, 14 Jul 2009 01:42:09 +0000 (01:42 +0000)
commit8f5827358be83cc9dd8ddef04dc79ef2c2ac2775
treeb1b1a7bbf25ba46e4e029e451c8ee33510a7e6ff
parent70c89d4ae002b324c891be30f625365d09420c27
THRIFT-543. java: Generate normal style java files should respect the "optional" keyword when serializing

As the summary suggests, this patch causes "optional" fields to be skipped if they are unset, even if they are primitives. As this patch is for the non-beans style generator, the user is expected to maintain the set/unset status themselves.

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