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