Sebb created EMAIL-170:
--------------------------

             Summary: Classes should not expose mutable fields
                 Key: EMAIL-170
                 URL: https://issues.apache.org/jira/browse/EMAIL-170
             Project: Commons Email
          Issue Type: Bug
            Reporter: Sebb
             Fix For: 2


Classes should not expose mutable fields. Mutable data should be private.
Occasionally it may be necessary to make a field package-protected.

If class fields need to be accessible externally this should be done through 
getters/setters.

This affects the following classes:

Email
HtmlEmail

This will break compatibility, so has to wait until a new major release



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to