Skip to content

Commit

Permalink
Integer::new is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed May 10, 2021
1 parent f512b9b commit 12f58ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public void testConversionUsingConvertWith() {
Assertions.assertFalse(configuredBean.getRunTimeConfig().objectBoolean);
Assertions.assertEquals(2, configuredBean.getRunTimeConfig().primitiveInteger);
Assertions.assertEquals(9, configuredBean.getRunTimeConfig().objectInteger);
List<Integer> oneToNine = IntStream.range(1, 10).mapToObj(Integer::new).collect(Collectors.toList());
List<Integer> oneToNine = IntStream.range(1, 10).mapToObj(Integer::valueOf).collect(Collectors.toList());
Assertions.assertEquals(oneToNine, configuredBean.getRunTimeConfig().oneToNine);
List<Integer> mapValues = new ArrayList<>(Arrays.asList(1, 2));
List<Integer> actualMapValues = new ArrayList<>(configuredBean.getRunTimeConfig().mapOfNumbers.values());
Expand Down

0 comments on commit 12f58ac

Please sign in to comment.