mirror da
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 05:57:44 +02:00
31 righe
826 B
Java
31 righe
826 B
Java
import org.aspectj.testing.Tester;
|
|
import org.aspectj.testing.Tester;
|
|
public class FullNames {
|
|
public static void main(String[] args) {
|
|
new FullNames().realMain(args);
|
|
}
|
|
public void realMain(String[] args) {
|
|
a();
|
|
b();
|
|
c();
|
|
Tester.checkAllEvents();
|
|
}
|
|
static {
|
|
Tester.expectEvent("a");
|
|
Tester.expectEvent("b");
|
|
Tester.expectEvent(String.class.toString()); // XXX changed w/o understanding
|
|
}
|
|
private void a() {
|
|
String java = new String("a");
|
|
Tester.event(java);
|
|
}
|
|
public void b() {
|
|
String java = String.copyValueOf(new char[]{'b'});
|
|
Tester.event(java);
|
|
}
|
|
public void c() {
|
|
Class java = String.class;
|
|
Tester.event(java.toString()); // XXX changed w/o understanding
|
|
}
|
|
}
|