You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/10/13 15:41:08 UTC
[camel] 03/03: (chores) camel-pdf: avoid shadowing variables
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit facf50d5575d6ced3a50841abc8f8e75c1e3d34f
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Oct 13 13:24:27 2022 +0200
(chores) camel-pdf: avoid shadowing variables
---
.../apache/camel/component/pdf/text/DefaultLineBuilderStrategy.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/text/DefaultLineBuilderStrategy.java b/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/text/DefaultLineBuilderStrategy.java
index c8975a4a9f5..9c810ba10d6 100644
--- a/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/text/DefaultLineBuilderStrategy.java
+++ b/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/text/DefaultLineBuilderStrategy.java
@@ -144,9 +144,9 @@ public class DefaultLineBuilderStrategy implements LineBuilderStrategy {
}
public String buildLine() {
- String line = this.line.toString();
+ String savedLine = this.line.toString();
reset();
- return line;
+ return savedLine;
}
public int getWordsCount() {