Skip to content

Commit

Permalink
Fixes sealed class test
Browse files Browse the repository at this point in the history
  • Loading branch information
jqno committed Jan 4, 2022
1 parent 122d267 commit 2e748b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void check() {

private void checkSuperclass() {
ClassAccessor<? super T> superAccessor = classAccessor.getSuperAccessor();
if (superAccessor.isEqualsInheritedFromObject()) {
if (superAccessor.isEqualsInheritedFromObject() || superAccessor.isSealed()) {
return;
}

Expand Down

0 comments on commit 2e748b9

Please sign in to comment.