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 InputLambda13 {
18
19 private static final Logger LOG = Logger.getLogger(InputLambda13.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) -> {
30 LOG.info(s1);
31 });
32 }
33
34 private interface TestOfVoidLambdas {
35
36 public void doSmth(String first, Integer second);
37 }
38 }