blob: 9f1c573aa1d0bd2222606b9380e79a5bbc804b6b (
plain)
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
|
//Compilable with Java8
package com.puppycrawl.tools.checkstyle.grammars.java8;
import java.util.function.Supplier;
public class InputLambda17{
void initPartialTraversalState() {
SpinedBuffer<P_OUT> b = new SpinedBuffer<>();
P_OUT spliterator = new P_OUT();
Supplier pusher = () -> spliterator.tryAdvance(b);
}
private class P_OUT
{
public Object tryAdvance(SpinedBuffer<P_OUT> b)
{
// comment
return null;
}
}
class SpinedBuffer<T>
{
}
}
|