forked from I2P_Developers/i2p.i2p
Big findbugs cleanup
This commit is contained in:
@ -54,36 +54,36 @@ public class ConfigFile {
|
||||
private boolean readConfigFile() {
|
||||
|
||||
FileInputStream fileInputStream = null;
|
||||
|
||||
boolean rv = true;
|
||||
try {
|
||||
fileInputStream = new FileInputStream(_configFile);
|
||||
_properties.load(fileInputStream);
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
rv = false;
|
||||
}
|
||||
try {
|
||||
fileInputStream.close();
|
||||
} catch (IOException e) {
|
||||
// No worries.
|
||||
}
|
||||
return true;
|
||||
return rv;
|
||||
}
|
||||
|
||||
private boolean writeConfigFile() {
|
||||
|
||||
FileOutputStream fileOutputStream = null;
|
||||
|
||||
boolean rv = true;
|
||||
try {
|
||||
fileOutputStream = new FileOutputStream(_configFile);
|
||||
_properties.store(fileOutputStream, null);
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
rv = false;
|
||||
}
|
||||
try {
|
||||
fileOutputStream.close();
|
||||
} catch (IOException e) {
|
||||
// No worries.
|
||||
}
|
||||
return true;
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
|
@ -85,8 +85,10 @@ public class UrlLauncher {
|
||||
new File("browser.reg").delete();
|
||||
} catch (Exception e) {
|
||||
// Defaults to IE.
|
||||
} finally {
|
||||
if (bufferedReader != null)
|
||||
try { bufferedReader.close(); } catch (IOException ioe) {}
|
||||
}
|
||||
|
||||
if (_shellCommand.executeSilentAndWaitTimed(browserString + " " + url, 5))
|
||||
return true;
|
||||
|
||||
|
Reference in New Issue
Block a user