Home | History | Annotate | Download | only in cases
      1 package annotations.tests.classfile.cases;
      2 
      3 import java.util.Set;
      4 
      5 public class TestLocalVariable<T> extends Object {
      6   public int i;
      7 
      8   public Set<Set> s;
      9 
     10   public TestLocalVariable() {
     11     int t = 0;
     12     i = 0;
     13   }
     14 
     15   public TestLocalVariable(int i) {
     16     this.i = i;
     17   }
     18 
     19   public TestLocalVariable(Integer j) {
     20     int k = 1;
     21     k++;
     22     this.i = j;
     23     k--;
     24     this.i = k;
     25   }
     26 
     27   public int i() {
     28     return i;
     29   }
     30 
     31   public int j() {
     32     int temp = 1;
     33     return j();
     34   }
     35 
     36   public static void someMethod() {
     37     TestLocalVariable t = new TestLocalVariable();
     38     String s = new String();
     39     Double d = Double.valueOf(2);
     40   }
     41 
     42   public static void main(String[] args) {
     43     boolean b = true;
     44     boolean b1 = Boolean.TRUE;
     45     boolean b2 = (boolean) Boolean.FALSE;
     46     b = b1 && b2;
     47     if (b || b2) {
     48       b1 = b;
     49     }
     50     if (b1) {
     51       System.out.println("Message");
     52     }
     53   }
     54 }
     55