Revert "Thrift-1465:Visibility of methods in generated java code"

This reverts commit b2c49527999528c2d9f28486d358e6ff3c3cc9dc.