Skip to content

Commit

Permalink
Handle java 8 generic type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
carterkozak committed Apr 25, 2021
1 parent 97f7973 commit 5bd1b48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/main/java/com/lmax/disruptor/BatchEventProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ private void handleOnShutdownException(final Throwable ex)
private ExceptionHandler<? super T> getExceptionHandler()
{
ExceptionHandler<? super T> handler = exceptionHandler;
return handler == null ? ExceptionHandlers.defaultHandler() : handler;
if (handler == null)
{
return ExceptionHandlers.defaultHandler();
}
return handler;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public void handleOnShutdownException(final Throwable ex)
private ExceptionHandler<? super T> getExceptionHandler()
{
ExceptionHandler<? super T> handler = delegate;
return handler == null ? ExceptionHandlers.defaultHandler() : handler;
if (handler == null)
{
return ExceptionHandlers.defaultHandler();
}
return handler;
}
}

0 comments on commit 5bd1b48

Please sign in to comment.