KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > cleanup > RemoveUnusedWithInitialValue


1 package org.netbeans.test.cleanup;
2
3 import java.util.Iterator JavaDoc;
4
5 /**
6  * @author leon
7  */

8 public class RemoveUnusedWithInitialValue {
9     
10     private int i = initialize1();
11     
12     private int k = i;
13     
14     private int j = 3;
15     
16     public RemoveUnusedWithInitialValue() {
17         initialize2();
18     }
19     
20     private int initialize1() {
21         return 0;
22     }
23     
24     private int initialize2() {
25         return 0;
26     }
27     
28     public void doSomeStuff() {
29         int j = initialize2();
30     }
31     
32     public void doSomeLoopStuff() {
33         for (Iterator JavaDoc it = null; it.hasNext();) {
34             Object JavaDoc o = it.next();
35         }
36     }
37     
38 }
39
Popular Tags