-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathTest.java
More file actions
35 lines (32 loc) · 757 Bytes
/
Test.java
File metadata and controls
35 lines (32 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
class Test implements Func {
public boolean test() { return false; }
public static void test2(Func func) {
}
{
test2(this::test);
}
}
interface Func {
public boolean test();
}
class Test2 {
{
new Test().test2(() -> {
Func f = () -> false;
return false;
});
}
}
class Test3 {
public abstract class SourceType2 {}
public abstract class SourceType<T, U> {}
private final java.util.concurrent.ConcurrentHashMap<String, Test3.SourceType<SourceType2, byte[]>> cache =
new java.util.concurrent.ConcurrentHashMap<>();
{
cache.computeIfAbsent(
null,
dummy-> {
return null;
});
}
}