exercism / exercism/java-analyzer

"The remainingMinutesInOven method should reuse the logic implemented in expectedMinutesInOven" should take into account fields of the class.

Open
#218 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
13
Forks
27
Avg merge
4d 9h
Merged PRs (30d)
6

Description

Hello there!
I got the recommendation I put into the title for this exercise. I think this recommendation seems to be wrong. The method remainingMinutesInOven() is a getter method, as it only returns a predefined value.
Do you really reuse getter methods in other class methods to use said value?
Storing the value in a field and using said field in other classes seems to be the more effecient way in my eyes and is thus a slightly misleading recommendation, I think.
![image](https://github.com/user-attachments/assets/e22fbfc8-cd0a-4dbc-b490-3bfbdfd81a5f)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.