Merge branch '6.1.x'

This commit is contained in:
Simon Baslé
2024-04-16 16:47:01 +02:00

View File

@@ -227,7 +227,7 @@ public class DefaultTransactionDefinition implements TransactionDefinition, Seri
*/
public final void setTimeout(int timeout) {
if (timeout < TIMEOUT_DEFAULT) {
throw new IllegalArgumentException("Timeout must be a positive integer or TIMEOUT_DEFAULT");
throw new IllegalArgumentException("Timeout must be a non-negative integer or TIMEOUT_DEFAULT");
}
this.timeout = timeout;
}