From 8768645703f78d44318836ad30da1b1357d6c85c Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Fri, 20 Oct 2023 12:05:11 -0400 Subject: [PATCH] spotless --- .../net/reports/AbstractReportGeneratorService.java | 3 ++- .../cryostat/recordings/RecordingArchiveHelper.java | 13 +++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/main/java/io/cryostat/net/reports/AbstractReportGeneratorService.java b/src/main/java/io/cryostat/net/reports/AbstractReportGeneratorService.java index 03541bb000..c97335a6aa 100644 --- a/src/main/java/io/cryostat/net/reports/AbstractReportGeneratorService.java +++ b/src/main/java/io/cryostat/net/reports/AbstractReportGeneratorService.java @@ -85,7 +85,8 @@ Path copyRecordingToFile( continue; } try (conn; - OutputStream out = new BufferedOutputStream(new FileOutputStream(path.toFile())); + OutputStream out = + new BufferedOutputStream(new FileOutputStream(path.toFile())); InputStream in = conn.getService().openStream(rec, false)) { byte[] buff = new byte[READ_BUFFER_SIZE]; int n = 0; diff --git a/src/main/java/io/cryostat/recordings/RecordingArchiveHelper.java b/src/main/java/io/cryostat/recordings/RecordingArchiveHelper.java index be271c66cf..d29eeebae8 100644 --- a/src/main/java/io/cryostat/recordings/RecordingArchiveHelper.java +++ b/src/main/java/io/cryostat/recordings/RecordingArchiveHelper.java @@ -392,21 +392,14 @@ public Future saveRecording( new ArchivedRecordingInfo( targetId, filename, - webServerProvider - .get() - .getArchivedDownloadURL( - targetId, filename), - webServerProvider - .get() - .getArchivedReportURL( - targetId, filename), + webServerProvider.get().getArchivedDownloadURL(targetId, filename), + webServerProvider.get().getArchivedReportURL(targetId, filename), metadata, getFileSize(filename), getArchivedTime(filename)); future.complete(archivedRecordingInfo); notificationFactory - .createOwnedResourceBuilder( - targetId, SAVE_NOTIFICATION_CATEGORY) + .createOwnedResourceBuilder(targetId, SAVE_NOTIFICATION_CATEGORY) .messageEntry("recording", archivedRecordingInfo) .build() .send();