Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1970838f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Close OutputStream after use in ComputerEngine" into main

parents 34132fcf 744fa287
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3065,10 +3065,9 @@ public class ComputerEngine implements Computer {
            case DumpState.DUMP_PREFERRED_XML:
            {
                pw.flush();
                FileOutputStream fout = new FileOutputStream(fd);
                BufferedOutputStream str = new BufferedOutputStream(fout);
                TypedXmlSerializer serializer = Xml.newFastSerializer();
                try {
                try (BufferedOutputStream str =
                             new BufferedOutputStream(new FileOutputStream(fd))) {
                    serializer.setOutput(str, StandardCharsets.UTF_8.name());
                    serializer.startDocument(null, true);
                    serializer.setFeature(