File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
framework-docs/modules/ROOT/pages/core/aop/ataspectj Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ Kotlin::
176
176
@AfterReturning(
177
177
pointcut = "execution(* com.xyz.dao.*.*(..))",
178
178
returning = "retVal")
179
- fun doAccessCheck(retVal: Any) {
179
+ fun doAccessCheck(retVal: Any? ) {
180
180
// ...
181
181
}
182
182
}
@@ -448,7 +448,7 @@ Kotlin::
448
448
class AroundExample {
449
449
450
450
@Around("execution(* com.xyz..service.*.*(..))")
451
- fun doBasicProfiling(pjp: ProceedingJoinPoint): Any {
451
+ fun doBasicProfiling(pjp: ProceedingJoinPoint): Any? {
452
452
// start stopwatch
453
453
val retVal = pjp.proceed()
454
454
// stop stopwatch
@@ -893,7 +893,7 @@ Kotlin::
893
893
"com.xyz.CommonPointcuts.inDataAccessLayer() && " +
894
894
"args(accountHolderNamePattern)") // <1>
895
895
fun preProcessQueryPattern(pjp: ProceedingJoinPoint,
896
- accountHolderNamePattern: String): Any {
896
+ accountHolderNamePattern: String): Any? {
897
897
val newPattern = preProcess(accountHolderNamePattern)
898
898
return pjp.proceed(arrayOf<Any>(newPattern))
899
899
}
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ Kotlin::
85
85
}
86
86
87
87
@Around("com.xyz.CommonPointcuts.businessService()") // <1>
88
- fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any {
88
+ fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any? {
89
89
var numAttempts = 0
90
90
var lockFailureException: PessimisticLockingFailureException
91
91
do {
@@ -173,7 +173,7 @@ Kotlin::
173
173
----
174
174
@Around("execution(* com.xyz..service.*.*(..)) && " +
175
175
"@annotation(com.xyz.service.Idempotent)")
176
- fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any {
176
+ fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any? {
177
177
// ...
178
178
}
179
179
----
You can’t perform that action at this time.
0 commit comments