From 434ad00d88ce24785b9d9edbcd03ffa562fd8a4e Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Thu, 6 Oct 2022 10:11:35 +0200 Subject: sanitizing NULLable config values --- pdf-over-signer/src/main/java/at/asit/pdfover/signer/Emblem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf-over-signer') diff --git a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/Emblem.java b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/Emblem.java index c045169a..6c368b16 100644 --- a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/Emblem.java +++ b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/Emblem.java @@ -85,7 +85,7 @@ public class Emblem { this.originalFileName = filename; } - private String getFileHash(String filename) throws IOException { + private static String getFileHash(String filename) throws IOException { InputStream is = Files.newInputStream(Path.of(filename)); return DigestUtils.md5Hex(is); } -- cgit v1.2.3