Open nus-se-script opened 6 months ago
Seeing as this is the Developer guide targeted to experienced Java developers. This bug should only constitute to be of severity Low due to the reasons below.
Understanding of Object Lifecycles: The sequence diagram's implication that the Model and LogicManager instances are destroyed might simply be a misinterpretation of what happens during the ClearCommand execution. As seasoned java developers, they would be able to understand that these are not actual object destructions but rather a state reset within the Model, then the diagram’s error would not lead to a serious misunderstanding of the system's behavior.
Correct Code Functionality: From the provided code snippet, the ClearCommand is functioning correctly by clearing the AddressBook and resetting relationship descriptors. The execution of this command correctly performs its intended function without any side effects or system crashes, then the inconsistency with the diagram is deemed a minor documentation issue and does not affect the actual running of the app.
No Runtime Impact: Since there is no evidence that this discrepancy affects the runtime behavior of the application, it does not pose a direct threat to the functionality or integrity of the system.
--
Note from the teaching team: This bug was reported during the Part II (Evaluating Documents) stage of the PE. You may reject this bug if it is not related to the quality of documentation.
In the sequence diagram, it is shown that the
Model
instance andLogicManager
instance are destroyed. However, from the code inClearCommand.java
, it looks like only theAddressBook
instance has been replaced with a new one, but not theModel
orLogicManager
.[original: nus-cs2103-AY2324S2/pe-interim#1200] [original labels: severity.Medium type.DocumentationBug]