private Throwable doSynchronizedWork( WorkUnit<Material,W> batch ) { W combinedWork = combine( batch ); Throwable failure = null; if ( combinedWork != null ) { try { combinedWork.apply( material ); } catch ( Throwable throwable ) { failure = throwable; } } return failure; }
private Throwable doSynchronizedWork( WorkUnit<Material,W> batch ) { W combinedWork = combine( batch ); Throwable failure = null; if ( combinedWork != null ) { try { combinedWork.apply( material ); } catch ( Throwable throwable ) { failure = throwable; } } return failure; }