Skip to content

Commit 05ffbde

Browse files
Shadowing fix
1 parent 3513425 commit 05ffbde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/java/dev/vml/es/acm/core/code/FileOutput.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ private File getTempFile() {
7171
String contextPrefix = StringUtils.replace(executionContext.getId(), "/", "-");
7272
String sanitizedName = StringUtils.replace(getName(), "/", "-");
7373
String fileName = String.format("%s_%s.out", contextPrefix, sanitizedName);
74-
File tempFile = new File(new File(tmpDir, TEMP_DIR), fileName);
75-
File parentDir = tempFile.getParentFile();
74+
File result = new File(new File(tmpDir, TEMP_DIR), fileName);
75+
File parentDir = result.getParentFile();
7676
if (parentDir != null && !parentDir.exists()) {
7777
try {
7878
FileUtils.forceMkdir(parentDir);
7979
} catch (IOException e) {
8080
throw new AcmException(String.format("Cannot create temp directory for output '%s'!", getName()), e);
8181
}
8282
}
83-
this.tempFile = tempFile;
83+
this.tempFile = result;
8484
}
8585
return tempFile;
8686
}

0 commit comments

Comments
 (0)