Skip to content

Commit 5738cfb

Browse files
committed
Merge pull request functionaljava#217 from samekmichal/patch-1
Correction for Java8 example Option_filter.java
2 parents c925a8c + 077832d commit 5738cfb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

demo/src/main/java/fj/demo/Option_filter.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ public static void main(final String[] args) {
1919
final Option<Integer> o6 = o3.filter(even);
2020

2121
F<Integer, Boolean> f = i -> i % 2 == 0;
22-
final Option<Integer> o7 = o1.filter(f);
23-
final Option<Integer> o8 = o1.filter(f);
24-
final Option<Integer> o9 = o1.filter(i -> i % 2 == 0);
22+
final Option<Integer> o7 = o4.filter(f);
23+
final Option<Integer> o8 = o5.filter(f);
24+
final Option<Integer> o9 = o6.filter(i -> i % 2 == 0);
2525

26-
optionShow(intShow).println(o4); // None
27-
optionShow(intShow).println(o5); // None
28-
optionShow(intShow).println(o6); // Some(8)
26+
optionShow(intShow).println(o7); // None
27+
optionShow(intShow).println(o8); // None
28+
optionShow(intShow).println(o9); // Some(8)
2929
}
3030
}

0 commit comments

Comments
 (0)