Skip to content

Commit

Permalink
Avoid raw-types in PageCacheTest.assertThrows
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvest committed Nov 9, 2015
1 parent c23f9d4 commit 3e1c970
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1180,7 +1180,7 @@ private void verifyExceptionOnCursorWrite(
assertThrows( exceptionType, () -> testTemplate.accept( ( cursor ) -> cursor.putShort( 0, (short) 1 ) ) ); assertThrows( exceptionType, () -> testTemplate.accept( ( cursor ) -> cursor.putShort( 0, (short) 1 ) ) );
} }


private void assertThrows( Class<? extends Exception> exceptionType, ThrowingAction action ) private void assertThrows( Class<? extends Exception> exceptionType, ThrowingAction<? extends Exception> action )
{ {
try try
{ {
Expand Down

0 comments on commit 3e1c970

Please sign in to comment.