1
2
3
4
5
6
7
8
9
10
11
12 package com.puppycrawl.tools.checkstyle.grammar.java8;
13
14 import java.util.logging.Logger;
15
16
17 public class InputLambda9 {
18
19 private static final Logger LOG = Logger.getLogger(InputLambda9.class.getName());
20
21 public static void testVoidLambda(TestOfVoidLambdas test) {
22 LOG.info("Method called");
23 test.doSmth("fef", 2);
24 }
25
26
27 public static void main(String[] args) {
28
29 testVoidLambda((s1, s2) -> {LOG.info(s1 + s2);});
30 }
31
32 private interface TestOfVoidLambdas {
33
34 public void doSmth(String first, Integer second);
35 }
36 }