View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.design.visibilitymodifier;
2   
3   import com.google.common.annotations.VisibleForTesting;
4   
5   import org.junit.ClassRule;
6   import org.junit.Rule;
7   import org.junit.rules.TemporaryFolder;
8   
9   import java.lang.annotation.ElementType;
10  import java.lang.annotation.Retention;
11  import java.lang.annotation.RetentionPolicy;
12  import java.lang.annotation.Target;
13  
14  public class InputVisibilityModifierAnnotated {
15      @Rule
16      public TemporaryFolder publicJUnitRule = new TemporaryFolder();
17  
18      @org.junit.Rule
19      public TemporaryFolder fqPublicJUnitRule = new TemporaryFolder();
20  
21      @VisibleForTesting
22      public String googleCommonsAnnotatedPublic;
23  
24      @VisibleForTesting
25      String googleCommonsAnnotatedPackage;
26  
27      @VisibleForTesting
28      protected String googleCommonsAnnotatedProtected;
29  
30      @com.google.common.annotations.VisibleForTesting
31      public String fqGoogleCommonsAnnotatedPublic;
32  
33      @com.google.common.annotations.VisibleForTesting
34      String fqGoogleCommonsAnnotatedPackage;
35  
36      @com.google.common.annotations.VisibleForTesting
37      protected String fqGoogleCommonsAnnotatedProtected;
38  
39      @CustomAnnotation
40      public String customAnnotatedPublic;
41  
42      @CustomAnnotation
43      String customAnnotatedPackage;
44  
45      @CustomAnnotation
46      protected String customAnnotatedProtected;
47  
48      public String unannotatedPublic;
49      String unannotatedPackage;
50      protected String unannotatedProtected;
51      private String unannotatedPrivate;
52  
53      @Retention(value=RetentionPolicy.RUNTIME)
54      @Target(value={ElementType.FIELD})
55      public @interface CustomAnnotation {
56      }
57  
58      @ClassRule
59      public static TemporaryFolder publicJUnitClassRule = new TemporaryFolder();
60  
61      @org.junit.ClassRule
62      public static TemporaryFolder fqPublicJUnitClassRule = new TemporaryFolder();
63  }