View Javadoc
1   public class AccidentalNonConstructorInInnerClass {
2
3       class Report {
4           void Report() {
5           };
6
7           class DeeplyNested {
8               void DeeplyNested() {
9               };
10          }
11      }
12
13      static class Report2 {
14          void Report2() {
15          };
16      }
17
18      class DoNotReport {
19          @Deprecated
20          void DoNotReport() {
21          }
22
23          DoNotReport() {
24          }
25      }
26
27      static class DoNotReport2 {
28          void DoNotReport2() {
29              throw new UnsupportedOperationException();
30          }
31
32          DoNotReport2() {
33          }
34      }
35
36  }