--- old/src/share/classes/java/util/function/IntSupplier.java 2012-12-05 09:51:13.290804725 -0800
+++ new/src/share/classes/java/util/function/IntSupplier.java 2012-12-05 09:51:13.078804715 -0800
@@ -27,12 +27,22 @@
/**
* A supplier of {@code int} values.
*
- *
This is the primitive type specialization of {@link Supplier} for
- * {@code int} and also may be used as a {@code Supplier}.
+ * This is the primitive type specialization of {@link Supplier} for {@code int}
+ * and also may be used as a {@code Supplier}.
*
* @since 1.8
*/
-public interface IntSupplier {
+public interface IntSupplier extends Supplier {
+
+ /**
+ * {@inheritDoc}
+ *
+ * @return {@inheritDoc}, always non-null
+ */
+ @Override
+ public default Integer get() {
+ return getAsInt();
+ }
/**
* Returns an {@code int} value.