KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > coding > InputFinalize


1 package com.puppycrawl.tools.checkstyle.coding;
2 public class InputFinalize
3 {
4     public InputFinalize() throws Throwable JavaDoc
5     {
6         super.equals(new String JavaDoc());
7         super.finalize();
8     }
9     
10     public void finalize() throws Throwable JavaDoc
11     {
12         super.finalize();
13     }
14     
15     public void method() throws Throwable JavaDoc
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 JavaDoc
39             {
40                 super.finalize();
41             }
42         }
43     }
44 }
45
46 //Check that super keword isn't snagged here
47
class MyClassWithGenericSuperMethod1
48 {
49     void someMethod(java.util.List JavaDoc<? super java.util.Map JavaDoc> l)
50     {
51
52     }
53 }
54
Popular Tags