This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git
The following commit(s) were added to refs/heads/master by this push:
new 56cdf52a Yse --
56cdf52a is described below
commit 56cdf52a4bcc7dc7b741d6737099da43c5affa00
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jan 15 09:25:51 2024 -0500
Yse --
---
src/main/java/org/apache/commons/csv/Lexer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/csv/Lexer.java
b/src/main/java/org/apache/commons/csv/Lexer.java
index 50aa176d..2072c3ea 100644
--- a/src/main/java/org/apache/commons/csv/Lexer.java
+++ b/src/main/java/org/apache/commons/csv/Lexer.java
@@ -518,7 +518,7 @@ final class Lexer implements Closeable {
void trimTrailingSpaces(final StringBuilder buffer) {
int length = buffer.length();
while (length > 0 && Character.isWhitespace(buffer.charAt(length -
1))) {
- length = length - 1;
+ length--;
}
if (length != buffer.length()) {
buffer.setLength(length);