1 2 3 4 5 6 7 8 9 10 11 12
package com.safedk.android.aspects; import org.aspectj.lang.JoinPoint.StaticPart; public aspect FilesAspect { pointcut fileCreateNewFile() : ( call(boolean java.io.File.createNewFile (..)) ); boolean around() : fileCreateNewFile() { return proceed(); } }