mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-01 14:47:56 +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.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
||||||
// options.setIndent(4);
|
// options.setIndent(4);
|
||||||
Yaml yaml = new Yaml(options);
|
Yaml yaml = new Yaml(options);
|
||||||
|
|
||||||
|
FileWriter writer = null;
|
||||||
try {
|
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) {
|
} catch (IOException ex) {
|
||||||
throw new AndrolibException(ex);
|
throw new AndrolibException(ex);
|
||||||
|
} finally {
|
||||||
|
if (writer != null) {
|
||||||
|
try {
|
||||||
|
writer.close();
|
||||||
|
} catch (IOException ex) {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user