Skip to content

Commit

Permalink
Fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
w3stling committed Dec 5, 2024
1 parent 865f60d commit 317b34f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -764,14 +764,14 @@ void testDoubleStream2() {

@Test
void testDoubleStreamMapToInt() {
int sum = getReaderDoubleStream().mapToInt(i -> Double.valueOf(i).intValue()).sum();
int sum = getReaderDoubleStream().mapToInt(i -> ((int) i)).sum();
assertEquals(1, closeCounter);
assertEquals(102.0, sum);
}

@Test
void testDoubleStreamMapToLong() {
long sum = getReaderDoubleStream().mapToLong(i -> Double.valueOf(i).longValue()).sum();
long sum = getReaderDoubleStream().mapToLong(i -> ((long)i)).sum();
assertEquals(1, closeCounter);
assertEquals(102, sum);
}
Expand Down

0 comments on commit 317b34f

Please sign in to comment.