Remove unnecessary null checks
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@764746 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6206817ffb
commit
c53f6961e1
|
@ -146,12 +146,10 @@ public class EmpiricalDistributionImpl implements Serializable, EmpiricalDistrib
|
|||
fillBinStats(in);
|
||||
loaded = true;
|
||||
} finally {
|
||||
if (in != null) {
|
||||
try {
|
||||
in.close();
|
||||
} catch (Exception ex) {
|
||||
// ignore
|
||||
}
|
||||
try {
|
||||
in.close();
|
||||
} catch (IOException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -181,12 +179,10 @@ public class EmpiricalDistributionImpl implements Serializable, EmpiricalDistrib
|
|||
fillBinStats(in);
|
||||
loaded = true;
|
||||
} finally {
|
||||
if (in != null) {
|
||||
try {
|
||||
in.close();
|
||||
} catch (Exception ex) {
|
||||
// ignore
|
||||
}
|
||||
try {
|
||||
in.close();
|
||||
} catch (IOException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue