View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.superfinalize;
2   public class InputSuperFinalizeVariations
3   {
4       public InputSuperFinalizeVariations() throws Throwable
5       {
6           super.equals(new String());
7           super.finalize();
8       }
9       
10      public void finalize() /**comment test*/throws Throwable
11      {
12          super.finalize();
13      }
14      
15      public void method() throws Throwable
16      {
17          super.finalize();
18      }
19      
20      {
21          super.finalize();
22      }
23  }
24  
25  class NoSuperFinalize
26  {
27      public void finalize()
28      {
29      }
30  }
31  
32  class InnerFinalize
33  {
34      public void finalize()
35      {
36          class Inner
37          {
38              public void finalize() throws Throwable
39              {
40                  super.finalize();
41              }
42          }
43      }
44  }
45  
46  //Check that super keyword isn't snagged here
47  class MyClassWithGenericSuperMethod1
48  {
49      void someMethod(java.util.List<? super java.util.Map> l)
50      {
51  
52      }
53  }
54  
55  class TestNative {
56      public native void finalize();
57  }
58  
59  class OneMore {
60      
61      public void doSmt() throws Throwable {
62          {
63              {
64                  super.finalize();
65              }
66          }
67      }
68  }