Skip to content

Commit

Permalink
local variable renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
OluchukwuCatherineObi-Njoku authored and darranl committed Mar 14, 2024
2 parents f860fb2 + 2f74e5f commit 71ccfa0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@ public class FileAuditEndpoint implements AuditEndpoint {
}

void setFile(final File file) throws IOException {
boolean ok = false;
boolean isFileSet = false;
final FileOutputStream fos = new FileOutputStream(file, true);
try {
final Writer writer = new OutputStreamWriter(new BufferedOutputStream(fos), this.charset);
try {
this.fileDescriptor = fos.getFD();
this.writer = writer;
this.file = file;
ok = true;
isFileSet = true;
} finally {
if (! ok) {
if (! isFileSet) {
safeClose(writer);
}
}
} finally {
if (! ok) {
if (! isFileSet) {
safeClose(fos);
}
}
Expand Down Expand Up @@ -121,7 +121,7 @@ void write(String toWrite) throws IOException {
* This method is NO-OP by default. It is intended to be overridden by subclasses
* which need to perform some operation before every writing into the target local file.
*
* This method can be invoked only in synchronization block surrounding one log message processing.
* This method can be invisFileSeted only in synchronization block surrounding one log message processing.
*
* @param instant time of the message acceptance
*/
Expand Down

0 comments on commit 71ccfa0

Please sign in to comment.