diff --git a/framework-docs/modules/ROOT/pages/core/aop/schema.adoc b/framework-docs/modules/ROOT/pages/core/aop/schema.adoc index fd19d9ecc6f2..c51ad3e976fd 100644 --- a/framework-docs/modules/ROOT/pages/core/aop/schema.adoc +++ b/framework-docs/modules/ROOT/pages/core/aop/schema.adoc @@ -435,7 +435,7 @@ Kotlin:: + [source,kotlin,indent=0,subs="verbatim",role="secondary"] ---- - fun doBasicProfiling(pjp: ProceedingJoinPoint): Any { + fun doBasicProfiling(pjp: ProceedingJoinPoint): Any? { // start stopwatch val retVal = pjp.proceed() // stop stopwatch @@ -554,7 +554,7 @@ Kotlin:: class SimpleProfiler { - fun profile(call: ProceedingJoinPoint, name: String, age: Int): Any { + fun profile(call: ProceedingJoinPoint, name: String, age: Int): Any? { val clock = StopWatch("Profiling for '$name' and '$age'") try { clock.start(call.toShortString()) @@ -890,7 +890,7 @@ Kotlin:: this.order = order } - fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any { + fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any? { var numAttempts = 0 var lockFailureException: PessimisticLockingFailureException do { diff --git a/framework-docs/modules/ROOT/pages/core/aop/using-aspectj.adoc b/framework-docs/modules/ROOT/pages/core/aop/using-aspectj.adoc index 10fdac6dcace..f9b6b39887da 100644 --- a/framework-docs/modules/ROOT/pages/core/aop/using-aspectj.adoc +++ b/framework-docs/modules/ROOT/pages/core/aop/using-aspectj.adoc @@ -493,7 +493,7 @@ Kotlin:: class ProfilingAspect { @Around("methodsToBeProfiled()") - fun profile(pjp: ProceedingJoinPoint): Any { + fun profile(pjp: ProceedingJoinPoint): Any? { val sw = StopWatch(javaClass.simpleName) try { sw.start(pjp.getSignature().getName())