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 Example9 {
21 private int myPrivateField1;
22
23 int field1;
24
25 protected String field2;
26
27
28 public int field3 = 42;
29
30 public long serialVersionUID = 1L;
31
32 public static final int field4 = 42;
33
34 public final int field5 = 42;
35
36 public final java.lang.String notes = null;
37
38
39 public final Set<String> mySet1 = new HashSet<>();
40
41
42 public final ImmutableSet<String> mySet2 = null;
43
44
45 public final ImmutableMap<String, Object> objects1 = null;
46
47 @java.lang.Deprecated
48 String annotatedString;
49
50 @Deprecated
51
52 String shortCustomAnnotated;
53
54 @com.google.common.annotations.VisibleForTesting
55 public String testString = "";
56 }
57