Skip to content

Commit

Permalink
Weaken the assertion in Source#equals for now
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-s committed Oct 22, 2020
1 parent a26e22e commit 2543460
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ public final boolean equals(Object obj) {
}

boolean result = getSourceId().equals(((Source) obj).getSourceId());
assert result == getSourceKey().equals(((Source) obj).getSourceKey());
// Can be turned into "result == ..." once GR-26875 is fixed
assert !result || getSourceKey().equals(((Source) obj).getSourceKey());
return result;
}

Expand Down

0 comments on commit 2543460

Please sign in to comment.