Generated Java classes should have properly encapsulated private variables
--------------------------------------------------------------------------
Key: THRIFT-1004
URL: https://issues.apache.org/jira/browse/THRIFT-1004
Project: Thrift
Issue Type: Improvement
Components: Java - Compiler
Reporter: Tomas Varaneckas
Priority: Minor
Thrift Java compiler generates classes with public variables, so you can get
and set them not only via getters and setters, but also directly. This is bad
design, it breaks the principle of encapsulation. Generated code should have
private members.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.