Bug:
Potential violation of Law of Demeter (object not created locally)
Explanation:
The code in a member function should only execute functions that are contained in the same class. This will helps to reduce the coupling between classes or objects. In the code above, several variables from different classes are simultaneously called here, which may violate the rule.
Bug location: ASE/Hotel/src/main/java/CheckIn/addGuestController.java (line 64)
Type: Coupling
Code snippet:
Bug: Potential violation of Law of Demeter (object not created locally)
Explanation: The code in a member function should only execute functions that are contained in the same class. This will helps to reduce the coupling between classes or objects. In the code above, several variables from different classes are simultaneously called here, which may violate the rule.