Skip to content

Commit da57328

Browse files
committed
Revert "Ensure that Option.Some can never be null"
This reverts commit 378938f.
1 parent 5e7e695 commit da57328

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

core/src/main/java/fj/data/Option.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,6 @@ private static final class Some<A> extends Option<A> {
616616
private final A a;
617617

618618
Some(final A a) {
619-
if (a == null) {
620-
throw new NullPointerException("Some cannot be null");
621-
}
622619
this.a = a;
623620
}
624621

0 commit comments

Comments
 (0)