THRIFT-2239 Address FindBugs errors

Client: Java
Patch: Liang Xie