01: package com.puppycrawl.tools.checkstyle.coding;
02:
03: public class InputFinalize {
04: public InputFinalize() throws Throwable {
05: super .equals(new String());
06: super .finalize();
07: }
08:
09: public void finalize() throws Throwable {
10: super .finalize();
11: }
12:
13: public void method() throws Throwable {
14: super .finalize();
15: }
16:
17: {
18: super .finalize();
19: }
20: }
21:
22: class NoSuperFinalize {
23: public void finalize() {
24: }
25: }
26:
27: class InnerFinalize {
28: public void finalize() {
29: class Inner {
30: public void finalize() throws Throwable {
31: super .finalize();
32: }
33: }
34: }
35: }
36:
37: //Check that super keword isn't snagged here
38: class MyClassWithGenericSuperMethod1 {
39: void someMethod(java.util.List<? super java.util.Map> l) {
40:
41: }
42: }
|