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:
Sebastian Bazley 2009-04-14 11:47:36 +00:00
parent 6206817ffb
commit c53f6961e1
1 changed files with 8 additions and 12 deletions

View File

@ -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
}
}
}