1
2
3
4
5
6
7 package com.puppycrawl.tools.checkstyle.checks.upperell;
8
9
10
11
12
13 class InputUpperEllSemantic
14 {
15
16 static {
17 Boolean x = new Boolean(true);
18 }
19
20 static {
21 int a = 0;
22 }
23
24 static {
25
26 }
27
28
29 private static final long IGNORE = 666l + 666L;
30
31
32 public void triggerEmptyBlockWithoutBlock()
33 {
34
35 if (true)
36 return;
37 }
38
39 synchronized void foo() {
40 synchronized (this) {}
41 synchronized (Class.class) {
42 synchronized (new Object()) {
43
44 }
45 }
46 }
47 }