Define a constant instead of duplicating this literal "total" 8 times.
未关闭
Easy-Fixed
- 主要语言
- Java
- 星标
- 6.4k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 115
描述
Code Path:confignode/src/main/java/org/apache/iotdb/confignode/manager/load/LoadManagerMetrics.java
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
贡献指南
调研方向
打开 confignode/src/main/java/org/apache/iotdb/confignode/manager/load/LoadManagerMetrics.java,找到重复的八个 "total" 字面量。定义一个常量并将其用于这些引用;当该字面量不再在那里重复且现有行为保持不变时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- database
- Issue 类型
- 重构
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 35/100