You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/11/29 12:39:39 UTC
(commons-text) branch master updated: Fix typo in local variable name
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-text.git
The following commit(s) were added to refs/heads/master by this push:
new f730ec11 Fix typo in local variable name
f730ec11 is described below
commit f730ec119fe9a74c7a2316f50dd1993ce851b5ff
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 29 12:39:34 2025 +0000
Fix typo in local variable name
---
.../java/org/apache/commons/text/translate/CsvTranslators.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/commons/text/translate/CsvTranslators.java b/src/main/java/org/apache/commons/text/translate/CsvTranslators.java
index 66b5dbd8..277b8d63 100644
--- a/src/main/java/org/apache/commons/text/translate/CsvTranslators.java
+++ b/src/main/java/org/apache/commons/text/translate/CsvTranslators.java
@@ -47,13 +47,13 @@ public final class CsvTranslators {
@Override
void translateWhole(final CharSequence input, final Writer writer) throws IOException {
- final String inputSting = input.toString();
- if (StringUtils.containsNone(inputSting, CSV_SEARCH_CHARS)) {
- writer.write(inputSting);
+ final String inputString = input.toString();
+ if (StringUtils.containsNone(inputString, CSV_SEARCH_CHARS)) {
+ writer.write(inputString);
} else {
// input needs quoting
writer.write(CSV_QUOTE);
- writer.write(StringUtils.replace(inputSting, CSV_QUOTE_STR, CSV_ESCAPED_QUOTE_STR));
+ writer.write(StringUtils.replace(inputString, CSV_QUOTE_STR, CSV_ESCAPED_QUOTE_STR));
writer.write(CSV_QUOTE);
}
}