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