nus-cs2113-AY2324S2 / pe-dev-response

0 stars 0 forks source link

Mislabel in class diagram #1094

Open nus-pe-bot opened 2 months ago

nus-pe-bot commented 2 months ago

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.


image.png The inputEntry according to label is linked to 0 to 1 food item inclusive. However in the code, it is unable to link to 0 food item.


[original: nus-cs2113-AY2324S2/pe-interim#989] [original labels: severity.Low type.DocumentationBug]

rexyyong commented 2 months ago

Team's Response

Hi there, thank you for the bug report!

However we believe that the bug reported is not consistent with the code attached below. It is possible for create input entry without a Food object. The Food object is initialized only when the calories in command contains macronutrients.

image.png

Thank you!

Duplicate status (if any):

--