Fix incorrect usage of StringBuilder#append in TransactionAwareBufferedWriter

Issue #3745
This commit is contained in:
Niels Ferguson
2021-02-03 14:36:50 +01:00
committed by Mahmoud Ben Hassine
parent a15496805b
commit 63b6dea514
2 changed files with 26 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2020 the original author or authors.
* Copyright 2006-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,6 +33,7 @@ import org.springframework.transaction.support.TransactionSynchronizationManager
*
* @author Dave Syer
* @author Michael Minella
* @author Niels Ferguson
*
*/
public class TransactionAwareBufferedWriter extends Writer {
@@ -244,6 +245,6 @@ public class TransactionAwareBufferedWriter extends Writer {
}
StringBuilder buffer = getCurrentBuffer();
buffer.append(str, off, len);
buffer.append(str, off, off + len);
}
}