--- old/src/share/classes/java/util/function/IntFunction.java 2012-12-05 09:51:12.618804694 -0800 +++ new/src/share/classes/java/util/function/IntFunction.java 2012-12-05 09:51:12.410804683 -0800 @@ -28,11 +28,26 @@ * Apply a function to the input object yielding an appropriate {@code int} * value; this is the {@code int}-bearing specialization for {@link Function}. * + *

When used as a {@code Function} the default {@code apply} implementation + * provided by this interface neither accepts null parameters nor does it return + * null results. + * * @param the type of input objects to the function * * @since 1.8 */ -public interface IntFunction { +public interface IntFunction extends Function { + + /** + * {@inheritDoc} + * + * @param t {@inheritDoc}, must be non-null + * @return {@inheritDoc}, always non-null + */ + @Override + public default Integer apply(T t) { + return applyAsInt(t); + } /** * Apply a function to the input object yielding an appropriate {@code int}