summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/java/80065-Java8DoubleColon.java
blob: ec594909ca751c79e21b8fdb3d45c90ac1017ded (plain)
1
2
3
4
5
6
7
8
9
10
import java.util.Objects;
import java.util.function.Predicate;

public class Java8DoubleColon {
public static void main(String[] args) {
	Predicate<Object> p = Objects::nonNull;
	System.out.println(false == p.test(null));
	System.out.println(true == p.test(p));
}
}