We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 123d80f commit 427994cCopy full SHA for 427994c
src/test/java/io/vavr/collection/AbstractSeqTest.java
@@ -570,7 +570,7 @@ public void shouldGetOptionFirstElement() {
570
571
@Test
572
public void shouldGetOptionWithNullContentsReturnSomeNull() {
573
- assertThat(of(new Integer(1), null).getOption(1)).isEqualTo(Option.some(null));
+ assertThat(of(1, null).getOption(1)).isEqualTo(Option.some(null));
574
}
575
576
@@ -607,7 +607,7 @@ public void shouldGetOrElseFirstElement() {
607
608
609
public void shouldGetOrElseWithNullContentsReturnNull() {
610
- assertThat(of(new Integer(1), null).getOrElse(1, 4)).isEqualTo(null);
+ assertThat(of(1, null).getOrElse(1, 4)).isEqualTo(null);
611
612
613
0 commit comments