1
2
3
4
5
6
7
8
9
10
11
12 package com.puppycrawl.tools.checkstyle.checks.design.hideutilityclassconstructor;
13
14
15
16 @java.lang.Deprecated
17 class Example2 {
18
19 public Example2() {
20 }
21
22 public static void fun() {
23 }
24 }
25
26 class Foo2 {
27
28 private Foo2() {
29 }
30
31 static int n;
32 }
33
34 class Bar2 {
35
36 protected Bar2() {
37
38 throw new UnsupportedOperationException();
39 }
40 }
41
42 @Deprecated
43 class UtilityClass2 {
44
45 static float f;
46 }
47
48 @SpringBootApplication
49 class Application2 {
50
51 public static void main(String[] args) {
52 }
53 }
54