mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
28 lines
693 B
Java
28 lines
693 B
Java
import org.aspectj.testing.*;
|
|
|
|
public class ArrayMethod {
|
|
public static void main(String[] args) {
|
|
new ArrayMethod().go();
|
|
Tester.check(true, "compiled");
|
|
}
|
|
|
|
void go() {
|
|
try {
|
|
int[] array1 = array1();
|
|
int[] array2 = array2();
|
|
for (int i = 0; i < array1.length; i++) {
|
|
Tester.checkEqual(array1[i],i);
|
|
Tester.checkEqual(array2[i],i);
|
|
}
|
|
} catch (Exception e) {
|
|
}
|
|
}
|
|
|
|
int array1()[] throws Exception {
|
|
return new int[] {0,1,2};
|
|
}
|
|
int[] array2() throws Exception {
|
|
return new int[] {0,1,2};
|
|
}
|
|
}
|