Define a constant instead of duplicating this literal "total" 8 times.
オープン
Easy-Fixed
- 主要言語
- Java
- スター
- 6.4k
- フォーク
- 1.2k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 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 を開き、重複している8つの "total" リテラルを見つけてください。定数を1つ定義し、それらの参照に使用してください。そこにリテラルの重複がなくなり、既存の動作が変わらなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- database
- issue の種類
- リファクタリング
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 35/100