Skip to content

Commit 427994c

Browse files
new Integer(int) is deprecated (#2667)
1 parent 123d80f commit 427994c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/io/vavr/collection/AbstractSeqTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ public void shouldGetOptionFirstElement() {
570570

571571
@Test
572572
public void shouldGetOptionWithNullContentsReturnSomeNull() {
573-
assertThat(of(new Integer(1), null).getOption(1)).isEqualTo(Option.some(null));
573+
assertThat(of(1, null).getOption(1)).isEqualTo(Option.some(null));
574574
}
575575

576576
@Test
@@ -607,7 +607,7 @@ public void shouldGetOrElseFirstElement() {
607607

608608
@Test
609609
public void shouldGetOrElseWithNullContentsReturnNull() {
610-
assertThat(of(new Integer(1), null).getOrElse(1, 4)).isEqualTo(null);
610+
assertThat(of(1, null).getOrElse(1, 4)).isEqualTo(null);
611611
}
612612

613613
@Test

0 commit comments

Comments
 (0)