File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
spring-aspects/src/main/java/org/springframework/transaction/aspectj
spring-expression/src/main/java/org/springframework/expression/spel/ast Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2020 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.
@@ -59,7 +59,8 @@ public abstract aspect AbstractTransactionAspect extends TransactionAspectSuppor
59
59
60
60
@Override
61
61
public void destroy () {
62
- clearTransactionManagerCache(); // An aspect is basically a singleton
62
+ // An aspect is basically a singleton -> cleanup on destruction
63
+ clearTransactionManagerCache();
63
64
}
64
65
65
66
@SuppressAjWarnings (" adviceDidNotMatch" )
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2020 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.
@@ -54,10 +54,9 @@ public static List<PropertyAccessor> getPropertyAccessorsToTry(
54
54
}
55
55
else {
56
56
if (targetType != null ) {
57
- int pos = 0 ;
58
57
for (Class <?> clazz : targets ) {
59
58
if (clazz == targetType ) { // put exact matches on the front to be tried first?
60
- specificAccessors .add (pos ++, resolver );
59
+ specificAccessors .add (resolver );
61
60
}
62
61
else if (clazz .isAssignableFrom (targetType )) { // put supertype matches at the end of the
63
62
// specificAccessor list
You can’t perform that action at this time.
0 commit comments