Skip to content

Commit

Permalink
code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
EugenMayer committed Jan 27, 2025
1 parent f552b77 commit 08b12b4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,12 +410,12 @@ private long saveCacheAsGzip(File targetFile, CveApiJson20 data, MessageDigest m
return uncompressedSize;
}

private void saveMetaData(File targetFile, long compressedSize, long uncompressedSize,
ZonedDateTime lastChanged, MessageDigest md) {
private void saveMetaData(File targetFile, long compressedSize, long uncompressedSize, ZonedDateTime lastChanged,
MessageDigest md) {
String checksum = getHex(md.digest());
try (FileOutputStream fileOutputStream = new FileOutputStream(targetFile);
OutputStreamWriter osw = new OutputStreamWriter(fileOutputStream, StandardCharsets.UTF_8);
PrintWriter writer = new PrintWriter(osw)) {
OutputStreamWriter osw = new OutputStreamWriter(fileOutputStream, StandardCharsets.UTF_8);
PrintWriter writer = new PrintWriter(osw)) {
final String lmd = DateTimeFormatter.ISO_DATE_TIME.format(lastChanged);
writer.println("lastModifiedDate:" + lmd);
writer.println("size:" + uncompressedSize);
Expand Down

0 comments on commit 08b12b4

Please sign in to comment.