exercism / exercism/java-analyzer
"The remainingMinutesInOven method should reuse the logic implemented in expectedMinutesInOven" should take into account fields of the class.
- 主要语言
- Java
- 星标
- 13
- 派生
- 27
- 平均合并
- 4 天 17 小时
- 30 天内合并 PR
- 7
描述
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.

贡献指南
调研方向
未指定文件、测试或入口点。首先定位生成 remainingMinutesInOven 和 expectedMinutesInOven 方法相关建议的分析器规则,然后检查练习的类字段和现有测试。当建议准确反映预期的字段使用方式,并且相关分析器测试通过时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100