You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/04/14 13:47:36 UTC
svn commit: r764746 -
/commons/proper/math/trunk/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java
Author: sebb
Date: Tue Apr 14 11:47:36 2009
New Revision: 764746
URL: http://svn.apache.org/viewvc?rev=764746&view=rev
Log:
Remove unnecessary null checks
Modified:
commons/proper/math/trunk/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java?rev=764746&r1=764745&r2=764746&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java Tue Apr 14 11:47:36 2009
@@ -146,12 +146,10 @@
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 @@
fillBinStats(in);
loaded = true;
} finally {
- if (in != null) {
- try {
- in.close();
- } catch (Exception ex) {
- // ignore
- }
+ try {
+ in.close();
+ } catch (IOException ex) {
+ // ignore
}
}
}