Skip to content

Commit 566621f

Browse files
committed
Merge branch '6.0.x'
2 parents f516431 + 0c15be0 commit 566621f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

framework-docs/modules/ROOT/pages/core/aop/ataspectj/advice.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Kotlin::
176176
@AfterReturning(
177177
pointcut = "execution(* com.xyz.dao.*.*(..))",
178178
returning = "retVal")
179-
fun doAccessCheck(retVal: Any) {
179+
fun doAccessCheck(retVal: Any?) {
180180
// ...
181181
}
182182
}
@@ -448,7 +448,7 @@ Kotlin::
448448
class AroundExample {
449449
450450
@Around("execution(* com.xyz..service.*.*(..))")
451-
fun doBasicProfiling(pjp: ProceedingJoinPoint): Any {
451+
fun doBasicProfiling(pjp: ProceedingJoinPoint): Any? {
452452
// start stopwatch
453453
val retVal = pjp.proceed()
454454
// stop stopwatch
@@ -888,7 +888,7 @@ Kotlin::
888888
"com.xyz.CommonPointcuts.inDataAccessLayer() && " +
889889
"args(accountHolderNamePattern)") // <1>
890890
fun preProcessQueryPattern(pjp: ProceedingJoinPoint,
891-
accountHolderNamePattern: String): Any {
891+
accountHolderNamePattern: String): Any? {
892892
val newPattern = preProcess(accountHolderNamePattern)
893893
return pjp.proceed(arrayOf<Any>(newPattern))
894894
}

framework-docs/modules/ROOT/pages/core/aop/ataspectj/example.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Kotlin::
8585
}
8686
8787
@Around("com.xyz.CommonPointcuts.businessService()") // <1>
88-
fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any {
88+
fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any? {
8989
var numAttempts = 0
9090
var lockFailureException: PessimisticLockingFailureException
9191
do {
@@ -173,7 +173,7 @@ Kotlin::
173173
----
174174
@Around("execution(* com.xyz..service.*.*(..)) && " +
175175
"@annotation(com.xyz.service.Idempotent)")
176-
fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any {
176+
fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any? {
177177
// ...
178178
}
179179
----

framework-docs/modules/ROOT/pages/core/aop/schema.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ Kotlin::
435435
+
436436
[source,kotlin,indent=0,subs="verbatim",role="secondary"]
437437
----
438-
fun doBasicProfiling(pjp: ProceedingJoinPoint): Any {
438+
fun doBasicProfiling(pjp: ProceedingJoinPoint): Any? {
439439
// start stopwatch
440440
val retVal = pjp.proceed()
441441
// stop stopwatch
@@ -554,7 +554,7 @@ Kotlin::
554554
555555
class SimpleProfiler {
556556
557-
fun profile(call: ProceedingJoinPoint, name: String, age: Int): Any {
557+
fun profile(call: ProceedingJoinPoint, name: String, age: Int): Any? {
558558
val clock = StopWatch("Profiling for '$name' and '$age'")
559559
try {
560560
clock.start(call.toShortString())
@@ -890,7 +890,7 @@ Kotlin::
890890
this.order = order
891891
}
892892
893-
fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any {
893+
fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any? {
894894
var numAttempts = 0
895895
var lockFailureException: PessimisticLockingFailureException
896896
do {

framework-docs/modules/ROOT/pages/core/aop/using-aspectj.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ Kotlin::
493493
class ProfilingAspect {
494494
495495
@Around("methodsToBeProfiled()")
496-
fun profile(pjp: ProceedingJoinPoint): Any {
496+
fun profile(pjp: ProceedingJoinPoint): Any? {
497497
val sw = StopWatch(javaClass.simpleName)
498498
try {
499499
sw.start(pjp.getSignature().getName())

0 commit comments

Comments
 (0)