Skip to content

Commit

Permalink
Remove var->OutputStream
Browse files Browse the repository at this point in the history
  • Loading branch information
subhramit committed Aug 22, 2024
1 parent 0bd9768 commit 2341811
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.jabref.logic.exporter;

import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
Expand Down Expand Up @@ -104,7 +105,7 @@ public void export(BibDatabaseContext databaseContext, Path file, List<BibEntry>
return;
}

try (var os = Files.newOutputStream(file)) {
try (OutputStream os = Files.newOutputStream(file)) {
XMLStreamWriter writer = OUTPUT_FACTORY.createXMLStreamWriter(os, StandardCharsets.UTF_8.name());
try {
writer.writeStartDocument(StandardCharsets.UTF_8.name(), "1.0");
Expand Down

0 comments on commit 2341811

Please sign in to comment.