Lines Matching refs:a

72   static public void doit1(int[] a) {  in doit1()  argument
74 if (a == null) in doit1()
76 for (int i = 0; i < a.length; i++) { in doit1()
77 a[i] = 1; in doit1()
100 static public void doit2(int[] a) { in doit2() argument
102 if (a == null) in doit2()
104 for (int i = 0; i < a.length; i++) { in doit2()
105 a[i] = 2; in doit2()
130 static public void doit3(int[] a) { in doit3() argument
132 checkNotNullDirect(a, par); in doit3()
133 for (int i = 0; i < a.length; i++) { in doit3()
134 a[i] = 3; in doit3()
157 static public void doit4(int[] a) { in doit4() argument
159 checkNotNullSplit(a, par); // resembles Kotlin runtime lib in doit4()
161 for (int i = 0; i < a.length; i++) { in doit4()
162 a[i] = 4; in doit4()
167 static public int doit5(int[] a) { in doit5() argument
170 if (a == null) { in doit5()
175 for (int i = 0; i < a.length; i++) { in doit5()
176 a[i] = 5; in doit5()
207 static public int deleteNullCheck(int[] a) { in deleteNullCheck() argument
208 checkNotNullSplit(a, "a"); in deleteNullCheck()
209 return a[0]; in deleteNullCheck()
217 static public int deleteNullCheckAlt(int[] a) { in deleteNullCheckAlt() argument
218 checkNotNullSplitAlt(a, "a"); in deleteNullCheckAlt()
219 return a[0]; in deleteNullCheckAlt()
229 static public int deleteNullChecks3(int[] a, int[] b, int[] c) { in deleteNullChecks3() argument
230 checkNotNullSplit(a, "a"); in deleteNullChecks3()
233 return a[0] + b[0] + c[0]; in deleteNullChecks3()
241 int[] a = new int[100]; in main() local
243 a[i] = 0; in main()
250 doit1(a); in main()
253 expectEquals(1, a[i]); in main()
260 doit2(a); in main()
263 expectEquals(2, a[i]); in main()
270 doit3(a); in main()
273 expectEquals(3, a[i]); in main()
280 doit4(a); in main()
283 expectEquals(4, a[i]); in main()
290 expectEquals(1000, doit5(a)); in main()
293 expectEquals(5, a[i]); in main()