summaryrefslogtreecommitdiff
path: root/spring-tx/src/test/java/org/springframework
diff options
context:
space:
mode:
authorEmmanuel Bourg <ebourg@apache.org>2018-10-05 14:13:31 +0200
committerEmmanuel Bourg <ebourg@apache.org>2018-10-05 14:13:31 +0200
commit28270ba2bd2be3c3f66eeafbeca15d09ba63cc5f (patch)
treef34feaee40de5360852db87b08e7e5940d7f837c /spring-tx/src/test/java/org/springframework
parentef9a891c4db2efcc1a454b14d96f82ce30000214 (diff)
New upstream version 4.3.19
Diffstat (limited to 'spring-tx/src/test/java/org/springframework')
-rw-r--r--spring-tx/src/test/java/org/springframework/transaction/interceptor/MapTransactionAttributeSource.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/spring-tx/src/test/java/org/springframework/transaction/interceptor/MapTransactionAttributeSource.java b/spring-tx/src/test/java/org/springframework/transaction/interceptor/MapTransactionAttributeSource.java
index 0e5aea25..348a5460 100644
--- a/spring-tx/src/test/java/org/springframework/transaction/interceptor/MapTransactionAttributeSource.java
+++ b/spring-tx/src/test/java/org/springframework/transaction/interceptor/MapTransactionAttributeSource.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2014 the original author or authors.
+ * Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,26 +28,26 @@ import java.util.Map;
*/
public class MapTransactionAttributeSource extends AbstractFallbackTransactionAttributeSource {
- private final Map<Object, TransactionAttribute> attributeMap = new HashMap<Object, TransactionAttribute>();
+ private final Map<Object, TransactionAttribute> attributeMap = new HashMap<>();
- public void register(Method method, TransactionAttribute txAttr) {
- this.attributeMap.put(method, txAttr);
- }
-
public void register(Class<?> clazz, TransactionAttribute txAttr) {
this.attributeMap.put(clazz, txAttr);
}
-
- @Override
- protected TransactionAttribute findTransactionAttribute(Method method) {
- return this.attributeMap.get(method);
+ public void register(Method method, TransactionAttribute txAttr) {
+ this.attributeMap.put(method, txAttr);
}
+
@Override
protected TransactionAttribute findTransactionAttribute(Class<?> clazz) {
return this.attributeMap.get(clazz);
}
+ @Override
+ protected TransactionAttribute findTransactionAttribute(Method method) {
+ return this.attributeMap.get(method);
+ }
+
}