1
2
3
4
5
6
7
8
9
10
11
12
13
14 package com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadocmethod;
15
16 import java.lang.annotation.ElementType;
17 import java.lang.annotation.Retention;
18 import java.lang.annotation.RetentionPolicy;
19 import java.lang.annotation.Target;
20 import java.nio.ByteBuffer;
21
22 public class InputMissingJavadocMethodReceiverParameter {
23
24 @Retention(RetentionPolicy.RUNTIME)
25 @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
26 public @interface Ann {
27
28
29
30
31
32 Class<?> value() default Object.class;
33 }
34
35
36
37
38
39
40 public void foo(@Ann(Object.class) InputMissingJavadocMethodReceiverParameter this,
41 final ByteBuffer buffer) {
42 buffer.putInt(1);
43 }
44
45 }