@Test public void sample() { List<Integer> numbers = Arrays.asList(1, 2, 3); int result = BuggyReduce.multiplyThrough(numbers); assertEquals(30, result); }
public static int multiplyThrough(List<Integer> numbers) { return 5 * numbers.parallelStream() .reduce(1, (acc, x) -> x * acc); }
BuggyReduce { public static int multiplyThrough(List<Integer> numbers) { return 5 * numbers.parallelStream() .reduce(1, (acc, x) -> x * acc); } }
BuggyReduce { public static int multiplyThrough(List<Integer> numbers) { return 5 * numbers.parallelStream() .reduce(1, (acc, x) -> x * acc); }  }
BuggyReduce { public static int multiplyThrough(List<Integer> numbers) { return 5 * numbers.parallelStream() .reduce(1, (acc, x) -> x * acc); }  static int multiplyThrough(List<Integer> numbers); }
BuggyReduce { public static int multiplyThrough(List<Integer> numbers) { return 5 * numbers.parallelStream() .reduce(1, (acc, x) -> x * acc); }  static int multiplyThrough(List<Integer> numbers);  }