Skip to content

Commit

Permalink
Turn on additional IntelliJ inspections and fix violations (Trivial e…
Browse files Browse the repository at this point in the history
…lse). #1323

Signed-off-by: Alexander Goldberg <alexander.goldberg@bnymellon.com>
  • Loading branch information
goldbal330 committed Jan 13, 2023
1 parent 48b73f0 commit 30dd65d
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .idea/inspectionProfiles/3_Consistent_Style.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/inspectionProfiles/IDE.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,7 @@ private static boolean nullSafeEquals(Object value, Object other)
{
return other == null;
}
else
{
return other == value || value.equals(other);
}
return other == value || value.equals(other);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2541,10 +2541,7 @@ private static boolean nullSafeEquals(Object value, Object other)
{
return other == null;
}
else
{
return other == value || value.equals(other);
}
return other == value || value.equals(other);
}

protected class EntrySet implements Set<Entry<K, V>>, Serializable, BatchIterable<Entry<K, V>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1055,10 +1055,7 @@ private static boolean nullSafeEquals(Object value, Object other)
{
return other == null;
}
else
{
return other == value || value.equals(other);
}
return other == value || value.equals(other);
}

private K toNonSentinel(Object key)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ private boolean nullSafeEquals(K key, Object other)
{
return other == null;
}
else if (key != NULL_KEY && other != null)
if (key != NULL_KEY && other != null)
{
return this.hashingStrategy.equals(key, this.toNonSentinel(other));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2270,10 +2270,7 @@ private static boolean nullSafeEquals(Object value, Object other)
{
return other == null;
}
else
{
return other == value || value.equals(other);
}
return other == value || value.equals(other);
}

protected class EntrySet implements Set<Entry<K, V>>, Serializable, BatchIterable<Entry<K, V>>
Expand Down

0 comments on commit 30dd65d

Please sign in to comment.