[build] Upgrade to PMD 7.2.0 (#6718)

This commit is contained in:
Gold856
2024-06-09 01:08:23 -04:00
committed by GitHub
parent e2dcbd016d
commit b0cc84a9c7
64 changed files with 148 additions and 183 deletions

View File

@@ -71,12 +71,10 @@ public class Pair<A, B> {
*/
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
return obj instanceof Pair<?, ?> other
&& Objects.equals(m_first, other.getFirst())
&& Objects.equals(m_second, other.getSecond());
return obj == this
|| obj instanceof Pair<?, ?> other
&& Objects.equals(m_first, other.getFirst())
&& Objects.equals(m_second, other.getSecond());
}
@Override