View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="SuperFinalize"/>
5     </module>
6   </module>
7   */
8   package com.puppycrawl.tools.checkstyle.checks.coding.superfinalize;
9   
10  // xdoc section -- start
11  class Example1 {
12    protected void finalize() throws Throwable {
13      super.finalize(); // OK, calls super.finalize()
14    }
15  }
16  class InvalidExample {
17    // violation below, 'Method 'finalize' should call 'super.finalize''
18    protected void finalize() throws Throwable {
19    }
20  }
21  // xdoc section -- end