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