View Javadoc
1   package com.puppycrawl.tools.checkstyle.grammars.java8;
2   import java.lang.annotation.ElementType;
3   import java.lang.annotation.Target;
4   import java.util.Map;
5   
6   
7   public class InputAnnotations8 {
8   	
9   	public void main(String[] args) {
10  		Map.@NotNull Entry entry;
11  		MyObject myObject = new MyObject();
12  		myObject.<@NotBlank String>myMethod();
13  		myObject.new @NotNull MyObject2();
14  		
15  	}
16  	
17  	@Target(ElementType.TYPE_USE)
18  	@interface NotNull {
19  
20  	}
21  	
22  	@Target(ElementType.TYPE_USE)
23  	@interface NotBlank {
24  
25  	}
26  	
27  	class MyObject{
28  		
29  		public void myMethod(){};
30  		
31  		class MyObject2{}
32  	}
33  	
34  }