File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
spring-aspects/src/main/java/org/springframework Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ package org.springframework.mock.staticmock;
19
19
import java.util.Arrays ;
20
20
import java.util.LinkedList ;
21
21
22
+ import org.aspectj.lang.annotation.SuppressAjWarnings ;
23
+
22
24
import org.springframework.util.ObjectUtils ;
23
25
24
26
/**
@@ -227,6 +229,7 @@ public abstract aspect AbstractMethodMockingControl percflow(mockStaticsTestMeth
227
229
*/
228
230
protected abstract pointcut methodToMock ();
229
231
232
+ @SuppressAjWarnings (" adviceDidNotMatch" )
230
233
after () returning : mockStaticsTestMethod() {
231
234
if (recording && (expectations. hasCalls())) {
232
235
throw new IllegalStateException (
@@ -236,6 +239,7 @@ public abstract aspect AbstractMethodMockingControl percflow(mockStaticsTestMeth
236
239
verifyInternal();
237
240
}
238
241
242
+ @SuppressAjWarnings (" adviceDidNotMatch" )
239
243
Object around () : methodToMock() && cflowbelow (mockStaticsTestMethod()) {
240
244
if (recording) {
241
245
expectations. expectCall(thisJoinPointStaticPart. toLongString(), thisJoinPoint. getArgs());
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2013 the original author or authors.
2
+ * Copyright 2002-2014 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -21,6 +21,8 @@ import javax.persistence.EntityManagerFactory;
21
21
import javax.persistence.EntityTransaction ;
22
22
import javax.persistence.Query ;
23
23
24
+ import org.aspectj.lang.annotation.SuppressAjWarnings ;
25
+
24
26
import org.springframework.dao.DataAccessException ;
25
27
import org.springframework.orm.jpa.EntityManagerFactoryUtils ;
26
28
@@ -29,6 +31,7 @@ public aspect JpaExceptionTranslatorAspect {
29
31
call (* EntityManager . * (.. )) || call (* EntityManagerFactory . * (.. )) ||
30
32
call (* EntityTransaction . * (.. )) || call (* Query . * (.. ));
31
33
34
+ @SuppressAjWarnings (" adviceDidNotMatch" )
32
35
after () throwing (RuntimeException re ): entityManagerCall() {
33
36
DataAccessException dex = EntityManagerFactoryUtils . convertJpaAccessExceptionIfPossible(re);
34
37
if (dex != null ) {
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import java.util.concurrent.Callable;
20
20
import java.util.concurrent.Executor ;
21
21
import java.util.concurrent.Future ;
22
22
23
+ import org.aspectj.lang.annotation.SuppressAjWarnings ;
23
24
import org.aspectj.lang.reflect.MethodSignature ;
24
25
25
26
import org.springframework.aop.interceptor.AsyncExecutionAspectSupport ;
@@ -58,6 +59,7 @@ public abstract aspect AbstractAsyncExecutionAspect extends AsyncExecutionAspect
58
59
* @return {@link Future} if the original method returns {@code Future }; {@code null }
59
60
* otherwise.
60
61
*/
62
+ @SuppressAjWarnings (" adviceDidNotMatch" )
61
63
Object around () : asyncMethod() {
62
64
final MethodSignature methodSignature = (MethodSignature ) thisJoinPointStaticPart. getSignature();
63
65
AsyncTaskExecutor executor = determineAsyncExecutor(methodSignature. getMethod());
You can’t perform that action at this time.
0 commit comments