mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-02 05:58:13 +02:00
19 lines
537 B
Java
19 lines
537 B
Java
public aspect ThreadAspectLib {
|
|
// pointcut setThreadLocalsField(): set(private int TestLib.myInt);
|
|
//
|
|
// Integer around():setThreadLocalsField()
|
|
// {
|
|
// try{
|
|
// return new Integer(2);
|
|
// }
|
|
// catch(Exception e)
|
|
// {
|
|
// e.printStackTrace();
|
|
// return null;
|
|
// }
|
|
// }
|
|
|
|
Integer around(): call(* getFive()) {
|
|
return new Integer(3);
|
|
}
|
|
} |