Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-krecan committed Nov 8, 2023
1 parent c9b22da commit eee93a9
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@
*/
package net.javacrumbs.jsonunit.core.internal;

import static java.util.stream.Collectors.toList;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

class ArrayUtils {
static List<Double> toDoubleList(double[] source) {
return Arrays.stream(source).boxed().collect(toList());
return Arrays.stream(source).boxed().toList();
}

static List<Integer> toIntList(int[] source) {
return Arrays.stream(source).boxed().collect(toList());
return Arrays.stream(source).boxed().toList();
}

// No streams for booleans
Expand Down

0 comments on commit eee93a9

Please sign in to comment.