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