Skip to content

Commit

Permalink
Fixed checkstyle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Feb 20, 2024
1 parent c0d65d2 commit 8f8318f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit 8f8318f

Please sign in to comment.