refactor: Java Security Ultimate Security Repo Scanner 2023 (#1455)

Disclaimer: Automated Commit Alert

Please be aware that this commit, generated through automated processes, may contain false alerts or not be precisely targeted. This automated commit is part of a large-scale effort to enhance software security over time. It is sent to various repositories to improve code quality and security. Exercise caution when reviewing the changes, and ensure that any necessary adjustments are made to maintain the integrity and functionality of the software.

Use this link to re-run the recipe: https://app.moderne.io/recipes/builder/TkgUEiqd7?organizationId=RWNsaXBzZSBGb3VuZGF0aW9u

Co-authored-by: Moderne <team@moderne.io>
This commit is contained in:
Stein.Codes
2023-11-01 15:41:08 +01:00
committed by GitHub
parent 6428422eed
commit defa6c3b69
4 changed files with 6 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ public class BulkUploadHandler implements SucceededListener, FailedListener, Rec
@Override
public OutputStream receiveUpload(final String filename, final String mimeType) {
try {
tempFile = File.createTempFile("temp", ".csv");
tempFile = Files.createTempFile("temp", ".csv").toFile();
return new FileOutputStream(tempFile);
} catch (final FileNotFoundException e) {