You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Good.java 764B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import java.util.*;
  2. import java.io.IOException;
  3. public class Good {
  4. public static String foo;
  5. public int publicA = 1;
  6. private int privateA = 2;
  7. protected int protectedA = 3;
  8. int packageA = 4;
  9. { publicA = 5; }
  10. static { foo = "hi"; }
  11. public Good() { }
  12. public void foo() {
  13. int i = 0;
  14. i += 1;
  15. i += 2;
  16. int aspect = 2;
  17. System.out.println(1 + aspect +", " + aspect++);
  18. }
  19. { publicA = 6; }
  20. static aspect x { }
  21. }
  22. aspect A {
  23. public void m() { }
  24. }
  25. /*
  26. aspect A {
  27. int j;
  28. public void m() { }
  29. pointcut all(): call(* *(..));
  30. after all(): { System.out.println(""); }
  31. before(): call(* *(..)) {
  32. System.out.println("");
  33. }
  34. }
  35. interface I { }
  36. */
  37. //privileged aspect PrivilegedAspect { }