instantiation of ConfigurationWriter should be closed in a finally block
Java class file shrinker, optimizer, obfuscator, and preverifier
Brought to you by:
guardsquare
In method saveConfiguration() of class ProGuardGUI(\proguard5.2.1\src\proguard\gui\ProGuardGUI.java).
The instantiation of ConfigurationWriter (writer) should be closed in a finally block.
While in this code snippet, the writer was closed in a try block.
try{
// Save the configuration file.
ConfigurationWriter writer = new ConfigurationWriter(file);
writer.write(getProGuardConfiguration());
writer.close();
}
catch (Exception ex)
...
}
You're right, thanks. That was a bit sloppy of me. I've fixed it for the upcoming ProGuard 5.3.