-
Notifications
You must be signed in to change notification settings - Fork 0
Check: Information Hiding
Madeline Kahn edited this page Mar 11, 2024
·
3 revisions
- Name:
"informationHiding"
- Default: Enabled
For a set of classes, the Check iterates through each class and searches for fields that violate information hiding. First, we iterate through every field in a class and determines if the field is public, or it contains a public "get" or "set" method. If either is found, the field is added a map that links classes to its fields that violate information hiding.
For each entry in the map, a message is created dictating which class contains a list of methods that violate information hiding. The Check will return a set of messages for each class.