You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/04/06 06:44:56 UTC
[camel] branch master updated: IOHelper#EncodingInputStream#read:
Convert read byte into an unsigned byte before returning it.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new aff2c47 IOHelper#EncodingInputStream#read: Convert read byte into an unsigned byte before returning it.
new 2aea97e Merge pull request #3713 from PascalSchumacher/EncodingInputStream#read
aff2c47 is described below
commit aff2c474d3b5d1a2f0ef9a1195ed48ef729c3dbf
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Sun Apr 5 23:00:26 2020 +0200
IOHelper#EncodingInputStream#read: Convert read byte into an unsigned byte before returning it.
---
core/camel-util/src/main/java/org/apache/camel/util/IOHelper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/camel-util/src/main/java/org/apache/camel/util/IOHelper.java b/core/camel-util/src/main/java/org/apache/camel/util/IOHelper.java
index 34089ce..aec5a9f 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/IOHelper.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/IOHelper.java
@@ -557,7 +557,7 @@ public final class IOHelper {
}
bufferBytes = defaultStreamCharset.encode(bufferedChars);
}
- return bufferBytes.get();
+ return bufferBytes.get() & 0xFF;
}
@Override