Skip to content

Commit ce8758b

Browse files
committed
Merge branch '6.1.x'
2 parents 43b5c81 + 8ec2743 commit ce8758b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-tx/src/main/java/org/springframework/transaction/support/DefaultTransactionDefinition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public final int getIsolationLevel() {
227227
*/
228228
public final void setTimeout(int timeout) {
229229
if (timeout < TIMEOUT_DEFAULT) {
230-
throw new IllegalArgumentException("Timeout must be a positive integer or TIMEOUT_DEFAULT");
230+
throw new IllegalArgumentException("Timeout must be a non-negative integer or TIMEOUT_DEFAULT");
231231
}
232232
this.timeout = timeout;
233233
}

0 commit comments

Comments
 (0)