1 2 3 4 5 6 7 8 9
// to be LTW with BasicProgram1 import org.aspectj.lang.annotation.*; public aspect UnlockAspect1 { @SuppressAjWarnings("adviceDidNotMatch") before(): unlock() { System.err.println("Unlock advice running at "+thisJoinPoint.getSourceLocation()); } }