Fix generation for Byte/byte while we're at it
Summary: If in a container, use Byte not byte
Reviewed By: dreiss
Test Plan: Generate a list of bytes
Other Notes: based upon Kyle's submission
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665417 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/generate/t_java_generator.cc b/compiler/cpp/src/generate/t_java_generator.cc
index 8e1c98f..e0a1be2 100644
--- a/compiler/cpp/src/generate/t_java_generator.cc
+++ b/compiler/cpp/src/generate/t_java_generator.cc
@@ -1832,7 +1832,7 @@
case t_base_type::TYPE_BOOL:
return (in_container ? "Boolean" : "boolean");
case t_base_type::TYPE_BYTE:
- return "byte";
+ return (in_container ? "Byte" : "byte");
case t_base_type::TYPE_I16:
return (in_container ? "Short" : "short");
case t_base_type::TYPE_I32: