apache / apache/iotdb

This class overrides "equals()" and should therefore also override "hashCode()".

オープン
#5,886 コメント 3 件 リアクション 0 件 担当者 0 名 @dongxuwang が担当を希望しています GitHub で見る
Easy-Fixed
主要言語
Java
スター
6.4k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
115

説明

Code Path:server/src/main/java/org/apache/iotdb/db/metadata/mnode/container/MNodeContainers.java
image
According to the Java Language Specification, there is a contract between equals(Object) and hashCode():

If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result.

It is not required that if two objects are unequal according to the equals(java.lang.Object) method, then calling the hashCode method on each of the two objects must produce distinct integer results.

However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hashtables.

In order to comply with this contract, those methods should be either both inherited, or both overridden.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

server/src/main/java/org/apache/iotdb/db/metadata/mnode/container/MNodeContainers.java から始めて、既存の equals(Object) 実装を確認してください。リンクされた pull request がすでに問題に対処しているか確認してください。完了とは、クラスが equals/hashCode コントラクトを満たし、関連するテストに合格することを意味します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
databases
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。