View Javadoc
1   /*
2   FinalClass
3   
4   
5   */
6   package com.puppycrawl.tools.checkstyle.checks.design.finalclass;
7   
8   public interface InputFinalClassNestedInInterfaceWithAnonInnerClass {
9       class a {
10          private a() {
11          }
12      }
13  
14      a obj = new a() {
15      };
16  
17      interface foo {
18          class m {
19              private m() {
20              }
21          }
22      }
23  
24      class b { // violation 'Class b should be declared as final'
25          private b() {
26          }
27          class foo {
28              class m { // violation 'Class m should be declared as final'
29                  private m() {
30                  }
31              }
32          }
33      }
34  
35      @interface annotatedInterface {
36          class b {
37              private b() {
38              }
39          }
40  
41          b obj = new b () {
42          };
43  
44          class c {
45              private c() {
46              }
47          }
48      }
49  
50      class c extends foo.m { // violation 'Class c should be declared as final'
51          private c() {
52          }
53      }
54  
55      class h extends annotatedInterface.c {
56      }
57  }