Skip to content

Commit bd4ebd6

Browse files
committed
Polishing
1 parent 29bd9b7 commit bd4ebd6

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

spring-tx/src/main/java/org/springframework/transaction/annotation/Transactional.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,11 +38,9 @@
3838
* {@link org.springframework.transaction.interceptor.RuleBasedTransactionAttribute}
3939
* class, and in fact {@link AnnotationTransactionAttributeSource} will directly
4040
* convert the data to the latter class, so that Spring's transaction support code
41-
* does not have to know about annotations. If no rules are relevant to the exception,
42-
* it will be treated like
43-
* {@link org.springframework.transaction.interceptor.DefaultTransactionAttribute}
44-
* (rolling back on {@link RuntimeException} and {@link Error} but not on checked
45-
* exceptions).
41+
* does not have to know about annotations. If no custom rollback rules apply,
42+
* the transaction will roll back on {@link RuntimeException} and {@link Error}
43+
* but not on checked exceptions.
4644
*
4745
* <p>For specific information about the semantics of this annotation's attributes,
4846
* consult the {@link org.springframework.transaction.TransactionDefinition} and

spring-tx/src/main/java/org/springframework/transaction/interceptor/RuleBasedTransactionAttribute.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@
2929
/**
3030
* TransactionAttribute implementation that works out whether a given exception
3131
* should cause transaction rollback by applying a number of rollback rules,
32-
* both positive and negative. If no rules are relevant to the exception, it
32+
* both positive and negative. If no custom rollback rules apply, this attribute
3333
* behaves like DefaultTransactionAttribute (rolling back on runtime exceptions).
3434
*
3535
* <p>{@link TransactionAttributeEditor} creates objects of this class.

0 commit comments

Comments
 (0)