1
2
3
4
5
6
7
8
9
10
11 package com.puppycrawl.tools.checkstyle.checks.design.visibilitymodifier;
12
13 import com.google.common.collect.ImmutableMap;
14 import com.google.common.collect.ImmutableSet;
15
16 import java.util.HashSet;
17 import java.util.Set;
18
19
20 class Example1 {
21 private int myPrivateField1;
22
23 int field1;
24
25 protected String field2;
26
27 public int field3 = 42;
28
29 public long serialVersionUID = 1L;
30
31 public static final int field4 = 42;
32
33
34 public final int field5 = 42;
35
36
37 public final java.lang.String notes = null;
38
39
40 public final Set<String> mySet1 = new HashSet<>();
41
42
43 public final ImmutableSet<String> mySet2 = null;
44
45
46 public final ImmutableMap<String, Object> objects1 = null;
47
48 @java.lang.Deprecated
49 String annotatedString;
50
51 @Deprecated
52
53 String shortCustomAnnotated;
54
55 @com.google.common.annotations.VisibleForTesting
56 public String testString = "";
57 }
58