--- old/src/share/classes/java/util/function/IntBlock.java 2012-12-04 21:26:57.144643494 -0800 +++ new/src/share/classes/java/util/function/IntBlock.java 2012-12-04 21:26:56.936643484 -0800 @@ -29,11 +29,23 @@ * external state. * *

This is the primitive type specialization of {@link Block} for - * {@code int} and also may be used as a {@code Block}. + * {@code int} and also may be used as a {@code Block}. When used as + * a {@code Block} the default {@code accept} implementation provided by this + * interface does not accept null parameters. * * @since 1.8 */ -public interface IntBlock { +public interface IntBlock extends Block { + + /** + * {@inheritDoc} + * + * @param t {@inheritDoc}, must be non-null + */ + @Override + public default void accept(Integer t) { + accept((int) t); + } /** * Use the {@code int} input value in an operation which may modify external