This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.8.x by this push:
new 6e24088acb6 Update doc
6e24088acb6 is described below
commit 6e24088acb60827792043ad18e0ffbee9e087fae
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Sep 25 13:27:37 2024 +0200
Update doc
---
components/camel-smb/src/main/docs/smb-component.adoc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-smb/src/main/docs/smb-component.adoc
b/components/camel-smb/src/main/docs/smb-component.adoc
index 642d2cb5fad..9559e5e3078 100644
--- a/components/camel-smb/src/main/docs/smb-component.adoc
+++ b/components/camel-smb/src/main/docs/smb-component.adoc
@@ -58,7 +58,7 @@ For instance, polling all the files from an SMB file share
and reading their con
[source,java]
----
private void process(Exchange exchange) throws IOException {
- final File file = exchange.getMessage().getBody(File.class);
+ final com.hierynomus.smbj.share.File file =
exchange.getMessage().getBody(com.hierynomus.smbj.share.File.class);
try (InputStream inputStream = file.getInputStream()) {
LOG.debug("Read exchange: {}, with contents: {}",
file.getFileInformation(), new String(inputStream.readAllBytes()));
}