Skip to content

Commit

Permalink
Use method reference
Browse files Browse the repository at this point in the history
  • Loading branch information
mnhock committed Jun 23, 2024
1 parent 25df2a1 commit e89fc80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void shouldThrowLoggerConventionsWithClassNaming() {
EnumSet.of(PRIVATE, FINAL)))
.build();

assertThrows(AssertionError.class, () -> taikai.check());
assertThrows(AssertionError.class, taikai::check);
}

@Test
Expand All @@ -55,7 +55,7 @@ void shouldThrowLoggerConventionsWithClassModifier() {
EnumSet.of(PRIVATE, FINAL)))
.build();

assertThrows(AssertionError.class, () -> taikai.check());
assertThrows(AssertionError.class, taikai::check);
}

private static class LoggerConventionsFollowed {
Expand Down

0 comments on commit e89fc80

Please sign in to comment.