Remove redundant null checks

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@776665 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-05-20 11:28:36 +00:00
parent 9d0bfcc80e
commit 1ec0f42390
2 changed files with 2 additions and 4 deletions

View File

@ -624,7 +624,7 @@ public class ExtendedProperties extends Hashtable {
file = new File(basePath + value);
}
if (file != null && file.exists() && file.canRead()) {
if (file.exists() && file.canRead()) {
load(new FileInputStream(file));
}
} else {

View File

@ -196,9 +196,7 @@ public class PrototypeFactory {
// ignore
}
try {
if (baos != null) {
baos.close();
}
baos.close();
} catch (IOException ex) {
// ignore
}