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:
parent
9d0bfcc80e
commit
1ec0f42390
|
@ -624,7 +624,7 @@ public class ExtendedProperties extends Hashtable {
|
||||||
file = new File(basePath + value);
|
file = new File(basePath + value);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file != null && file.exists() && file.canRead()) {
|
if (file.exists() && file.canRead()) {
|
||||||
load(new FileInputStream(file));
|
load(new FileInputStream(file));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -196,9 +196,7 @@ public class PrototypeFactory {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (baos != null) {
|
baos.close();
|
||||||
baos.close();
|
|
||||||
}
|
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue