1 19 20 package org.netbeans.api.debugger.jpda.testapps; 21 22 27 public class FieldBreakpointApp { 28 29 static int x = 1; 30 31 static { 32 x ++; 33 } 34 35 public static void main(String [] args) { 36 FieldBreakpointApp sa = new FieldBreakpointApp(); 37 x ++; 38 sa.m1(); 39 int isq = InnerStatic.getQ(); 40 InnerStatic is = new InnerStatic(); 41 int isw = is.getW(); 42 } 43 44 private int y = 1; 45 46 { 47 y++; 48 } 49 50 public FieldBreakpointApp() { 51 y++; 52 } 53 54 private int m1() { 55 int im1 = 10; 56 m2(); 57 Inner ic = new Inner(); 58 int iw = ic.getW(); 59 return im1; 60 } 61 62 private int m2() { 63 int im2 = 20; 64 m3(); 65 return im2; 66 } 67 68 private int m3() { 69 int im3 = 30; 70 return im3; 71 } 72 73 private static class InnerStatic { 74 75 private static int q = 1; 76 77 static { 78 q ++; 79 } 80 81 private int w = 1; 82 83 { 84 w ++; 85 } 86 87 public InnerStatic() { 88 w ++; 89 } 90 91 public static int getQ() { 92 return q; 93 } 94 95 public int getW() { 96 return w; 97 } 98 } 99 100 private class Inner { 101 102 private int w = 1; 103 104 { 105 w ++; 106 } 107 108 public Inner() { 109 w ++; 110 } 111 112 public int getW() { 113 return w; 114 } 115 } 116 117 } 118 | Popular Tags |