From 8f8318f478cd2fcab6c9b274a8a5b70eea9c0a77 Mon Sep 17 00:00:00 2001 From: milanmajchrak Date: Tue, 20 Feb 2024 12:31:43 +0100 Subject: [PATCH] Fixed checkstyle issues --- .../org/dspace/storage/bitstore/SyncS3BitStoreService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dspace-api/src/main/java/org/dspace/storage/bitstore/SyncS3BitStoreService.java b/dspace-api/src/main/java/org/dspace/storage/bitstore/SyncS3BitStoreService.java index daa94e44c901..f5ff14bfc699 100644 --- a/dspace-api/src/main/java/org/dspace/storage/bitstore/SyncS3BitStoreService.java +++ b/dspace-api/src/main/java/org/dspace/storage/bitstore/SyncS3BitStoreService.java @@ -258,7 +258,8 @@ private void uploadByParts(String key, File scratchFile) throws IOException { } // Complete the multipart upload - CompleteMultipartUploadRequest completeRequest = new CompleteMultipartUploadRequest(this.getBucketName(), key, uploadId, partETags); + CompleteMultipartUploadRequest completeRequest = new CompleteMultipartUploadRequest(this.getBucketName(), + key, uploadId, partETags); this.s3Service.completeMultipartUpload(completeRequest); } catch (AmazonClientException e) { log.error("Cannot upload the file by parts because: ", e); @@ -275,7 +276,8 @@ private void uploadByParts(String key, File scratchFile) throws IOException { * @return the checksum of the part * @throws IOException if an I/O error occurs */ - public static String calculatePartChecksum(File file, long offset, long length, MessageDigest digest) throws IOException { + public static String calculatePartChecksum(File file, long offset, long length, MessageDigest digest) + throws IOException { try (FileInputStream fis = new FileInputStream(file); DigestInputStream dis = new DigestInputStream(fis, digest)) { // Skip to the specified offset