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();