Skip to content

Commit b8480ea

Browse files
committed
Polishing
1 parent bf9043c commit b8480ea

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2018 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.
@@ -81,8 +81,12 @@ public enum Isolation {
8181
private final int value;
8282

8383

84-
Isolation(int value) { this.value = value; }
84+
Isolation(int value) {
85+
this.value = value;
86+
}
8587

86-
public int value() { return this.value; }
88+
public int value() {
89+
return this.value;
90+
}
8791

8892
}

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2018 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.
@@ -62,7 +62,7 @@ public enum Propagation {
6262
* on all transaction managers. This in particular applies to
6363
* {@link org.springframework.transaction.jta.JtaTransactionManager},
6464
* which requires the {@code javax.transaction.TransactionManager} to be
65-
* made available it to it (which is server-specific in standard Java EE).
65+
* made available to it (which is server-specific in standard Java EE).
6666
* @see org.springframework.transaction.jta.JtaTransactionManager#setTransactionManager
6767
*/
6868
REQUIRES_NEW(TransactionDefinition.PROPAGATION_REQUIRES_NEW),
@@ -74,7 +74,7 @@ public enum Propagation {
7474
* on all transaction managers. This in particular applies to
7575
* {@link org.springframework.transaction.jta.JtaTransactionManager},
7676
* which requires the {@code javax.transaction.TransactionManager} to be
77-
* made available it to it (which is server-specific in standard Java EE).
77+
* made available to it (which is server-specific in standard Java EE).
7878
* @see org.springframework.transaction.jta.JtaTransactionManager#setTransactionManager
7979
*/
8080
NOT_SUPPORTED(TransactionDefinition.PROPAGATION_NOT_SUPPORTED),
@@ -100,8 +100,12 @@ public enum Propagation {
100100
private final int value;
101101

102102

103-
Propagation(int value) { this.value = value; }
103+
Propagation(int value) {
104+
this.value = value;
105+
}
104106

105-
public int value() { return this.value; }
107+
public int value() {
108+
return this.value;
109+
}
106110

107111
}

0 commit comments

Comments
 (0)