@@ -433,15 +433,6 @@ private record ExtendedTransactionDefinition(@Nullable String transactionName,
433
433
boolean readOnly , @ Nullable IsolationLevel isolationLevel , Duration lockWaitTimeout )
434
434
implements io .r2dbc .spi .TransactionDefinition {
435
435
436
- private ExtendedTransactionDefinition (@ Nullable String transactionName , boolean readOnly ,
437
- @ Nullable IsolationLevel isolationLevel , Duration lockWaitTimeout ) {
438
-
439
- this .transactionName = transactionName ;
440
- this .readOnly = readOnly ;
441
- this .isolationLevel = isolationLevel ;
442
- this .lockWaitTimeout = lockWaitTimeout ;
443
- }
444
-
445
436
@ SuppressWarnings ("unchecked" )
446
437
@ Override
447
438
public <T > T getAttribute (Option <T > option ) {
@@ -459,16 +450,16 @@ private Object doGetValue(Option<?> option) {
459
450
if (io .r2dbc .spi .TransactionDefinition .READ_ONLY .equals (option )) {
460
451
return this .readOnly ;
461
452
}
462
- if (io .r2dbc .spi .TransactionDefinition .LOCK_WAIT_TIMEOUT .equals (option )
463
- && !this .lockWaitTimeout .isZero ()) {
453
+ if (io .r2dbc .spi .TransactionDefinition .LOCK_WAIT_TIMEOUT .equals (option ) &&
454
+ !this .lockWaitTimeout .isZero ()) {
464
455
return this .lockWaitTimeout ;
465
456
}
466
457
return null ;
467
458
}
468
459
469
460
@ Override
470
461
public String toString () {
471
- StringBuilder sb = new StringBuilder ();
462
+ StringBuilder sb = new StringBuilder (128 );
472
463
sb .append (getClass ().getSimpleName ());
473
464
sb .append (" [transactionName='" ).append (this .transactionName ).append ('\'' );
474
465
sb .append (", readOnly=" ).append (this .readOnly );
0 commit comments