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/26 15:59:02 UTC
[camel] branch main updated: (chores) camel-aws2-kinesis: renamed variable to avoid conflicts with restricted identifiers
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
The following commit(s) were added to refs/heads/main by this push:
new 04ea1633ae2 (chores) camel-aws2-kinesis: renamed variable to avoid conflicts with restricted identifiers
04ea1633ae2 is described below
commit 04ea1633ae2b5146f74160916f38e8b0e0018664
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Oct 26 16:32:56 2022 +0200
(chores) camel-aws2-kinesis: renamed variable to avoid conflicts with restricted identifiers
---
.../apache/camel/component/aws2/kinesis/RecordStringConverter.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/camel-aws/camel-aws2-kinesis/src/main/java/org/apache/camel/component/aws2/kinesis/RecordStringConverter.java b/components/camel-aws/camel-aws2-kinesis/src/main/java/org/apache/camel/component/aws2/kinesis/RecordStringConverter.java
index bed8384045a..2acd56102f1 100644
--- a/components/camel-aws/camel-aws2-kinesis/src/main/java/org/apache/camel/component/aws2/kinesis/RecordStringConverter.java
+++ b/components/camel-aws/camel-aws2-kinesis/src/main/java/org/apache/camel/component/aws2/kinesis/RecordStringConverter.java
@@ -31,12 +31,12 @@ public final class RecordStringConverter {
}
@Converter
- public static String toString(Record record) {
+ public static String toString(Record dataRecord) {
Charset charset = StandardCharsets.UTF_8;
- ByteBuffer buffer = record.data().asByteBuffer();
+ ByteBuffer buffer = dataRecord.data().asByteBuffer();
if (buffer.hasArray()) {
- byte[] bytes = record.data().asByteArray();
+ byte[] bytes = dataRecord.data().asByteArray();
return new String(bytes, charset);
} else {
byte[] bytes = new byte[buffer.remaining()];