Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Oct 24, 2023
1 parent 6e9725b commit 3c391a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
13 changes: 3 additions & 10 deletions src/main/java/io/cryostat/recordings/RecordingArchiveHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -392,21 +392,14 @@ public Future<ArchivedRecordingInfo> 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();
Expand Down

0 comments on commit 3c391a4

Please sign in to comment.