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 InputLambda12 {
18
19 private static final Logger LOG = Logger.getLogger(InputLambda12.class.getName());
20
21 public static void testVoidLambda(TestOfVoidLambdas test) {
22 LOG.info("Method called");
23 test.doSmth("fef", 5);
24 }
25
26
27 public static void main(String[] args) {
28
29 testVoidLambda((String s1, Integer i2) -> LOG.info(s1));
30 }
31
32 private interface TestOfVoidLambdas {
33
34 public void doSmth(String first, Integer second);
35 }
36 }