Repository: commons-math
Updated Branches:
  refs/heads/master 02dd98a04 -> 7c12a85bf


remove useless local initialization before assignment


Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/7c12a85b
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/7c12a85b
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/7c12a85b

Branch: refs/heads/master
Commit: 7c12a85bf8f8566d692557d526556fa3ef81824a
Parents: 02dd98a
Author: Dave Brosius <dbros...@mebigfatguy.com>
Authored: Sun May 29 17:32:40 2016 -0400
Committer: Dave Brosius <dbros...@mebigfatguy.com>
Committed: Sun May 29 17:32:40 2016 -0400

----------------------------------------------------------------------
 .../commons/math4/distribution/AbstractIntegerDistribution.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/7c12a85b/src/main/java/org/apache/commons/math4/distribution/AbstractIntegerDistribution.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/commons/math4/distribution/AbstractIntegerDistribution.java
 
b/src/main/java/org/apache/commons/math4/distribution/AbstractIntegerDistribution.java
index 95d6f07..4c42c01 100644
--- 
a/src/main/java/org/apache/commons/math4/distribution/AbstractIntegerDistribution.java
+++ 
b/src/main/java/org/apache/commons/math4/distribution/AbstractIntegerDistribution.java
@@ -209,8 +209,7 @@ public abstract class AbstractIntegerDistribution 
implements IntegerDistribution
      */
     private double checkedCumulativeProbability(int argument)
         throws MathInternalError {
-        double result = Double.NaN;
-        result = cumulativeProbability(argument);
+        double result = cumulativeProbability(argument);
         if (Double.isNaN(result)) {
             throw new MathInternalError(LocalizedFormats
                     .DISCRETE_CUMULATIVE_PROBABILITY_RETURNED_NAN, argument);

Reply via email to