Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819
  1. public aspect ThreadAspectLib {
  2. // pointcut setThreadLocalsField(): set(private int TestLib.myInt);
  3. //
  4. // Integer around():setThreadLocalsField()
  5. // {
  6. // try{
  7. // return new Integer(2);
  8. // }
  9. // catch(Exception e)
  10. // {
  11. // e.printStackTrace();
  12. // return null;
  13. // }
  14. // }
  15. Integer around(): call(* getFive()) {
  16. return new Integer(3);
  17. }
  18. }