File: Bug560392.java

package info (click to toggle)
eclipse-jdt-debug 4.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,876 kB
  • sloc: java: 234,390; xml: 6,367; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import java.util.Arrays;
import java.util.function.Predicate;

public class Bug560392 {

	public static Predicate<String> breakpointMethod(String key) {
		return (s) -> {
			System.out.println("Key" + key);
			return s.contains(key);
		};
	}

	public static void main(String[] args) {
		Arrays.asList("111", "222", "aaa").stream().filter(breakpointMethod("a")).count();
	}
}