mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-20 16:57:34 +01:00
Close file handler for apktool.yml .
This commit is contained in:
parent
3de632f04c
commit
8171245457
@ -116,10 +116,19 @@ public class Androlib {
|
||||
options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
||||
// options.setIndent(4);
|
||||
Yaml yaml = new Yaml(options);
|
||||
|
||||
FileWriter writer = null;
|
||||
try {
|
||||
yaml.dump(meta, new FileWriter(new File(mOutDir, "apktool.yml")));
|
||||
writer = new FileWriter(new File(mOutDir, "apktool.yml"));
|
||||
yaml.dump(meta, writer);
|
||||
} catch (IOException ex) {
|
||||
throw new AndrolibException(ex);
|
||||
} finally {
|
||||
if (writer != null) {
|
||||
try {
|
||||
writer.close();
|
||||
} catch (IOException ex) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user