You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2021/09/09 15:22:54 UTC

[sling-org-apache-sling-commons-clam] 14/25: [checkstyle] (coding) FinalLocalVariable

This is an automated email from the ASF dual-hosted git repository.

olli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-clam.git

commit 6c0217ce2004fb0361ad4053efa4bbc0a11a2d64
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Wed Sep 8 21:50:26 2021 +0200

    [checkstyle] (coding) FinalLocalVariable
---
 src/main/java/org/apache/sling/commons/clam/internal/ClamdService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/commons/clam/internal/ClamdService.java b/src/main/java/org/apache/sling/commons/clam/internal/ClamdService.java
index 477ab73..e03d655 100644
--- a/src/main/java/org/apache/sling/commons/clam/internal/ClamdService.java
+++ b/src/main/java/org/apache/sling/commons/clam/internal/ClamdService.java
@@ -190,7 +190,7 @@ public final class ClamdService implements ClamService, ContentAnalyzer {
             out.flush();
 
             // send data in chunks
-            byte[] data = new byte[configuration.chunk_length()];
+            final byte[] data = new byte[configuration.chunk_length()];
             long total = 0;
             int read = inputStream.read(data);
             while (read >= 0) {