Scripts for bootstrapping various programming languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
549 B

--- openjdk-boot/jdk/src/share/classes/sun/security/util/Optional.java.orig
+++ openjdk-boot/jdk/src/share/classes/sun/security/util/Optional.java
@@ -189,12 +189,7 @@
* @throws NullPointerException if the mapping function is null
*/
public<U> Optional<U> map(Function<? super T, ? extends U> mapper) {
- Objects.requireNonNull(mapper);
- if (!isPresent())
- return empty();
- else {
- return Optional.ofNullable(mapper.apply(value));
- }
+ return empty();
}
/**