THRIFT-998. java: Using valueOf for base types in getFieldValue valueOf saves us on memory for 'small' primitive types and costs us nothing in other situations, so it's an all-around win. Patch: Takashi Yonebayashi