--- old/src/share/classes/java/util/function/DoubleBlock.java 2012-12-05 09:51:08.586804499 -0800 +++ new/src/share/classes/java/util/function/DoubleBlock.java 2012-12-05 09:51:08.378804487 -0800 @@ -28,12 +28,24 @@ * An operation upon a {@code double} input value. The operation may modify * external state. * - *

This is the primitive type specialization of {@link Block} for - * {@code double} and also may be used as a {@code Block}. + *

This is the primitive type specialization of {@link Block} for + * {@code double} 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 DoubleBlock { +public interface DoubleBlock extends Block { + + /** + * {@inheritDoc} + * + * @param t {@inheritDoc}, must be non-null + */ + @Override + public default void accept(Double t) { + accept((double)t); + } /** * Use the {@code double} input value in an operation which may modify