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 d02bef695e0f6b5e51dca5dbf26d3a5b163457fe Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Mon Aug 26 14:18:21 2024 +0200 (chores) camel-zipfile: use more adequately sized buffers --- .../java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java index a0624040fbc..dcbcbb52180 100644 --- a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java +++ b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java @@ -126,7 +126,7 @@ public class ZipFileDataFormat extends ServiceSupport implements DataFormat, Dat private void createZipEntries(ZipOutputStream zos, String filepath) throws IOException { Iterator<Path> elements = Paths.get(filepath).iterator(); - StringBuilder sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(256); while (elements.hasNext()) { Path path = elements.next();
