remove useless local initialization before assignment

This commit is contained in:
Dave Brosius 2016-05-29 17:32:40 -04:00
parent 02dd98a045
commit 7c12a85bf8
1 changed files with 1 additions and 2 deletions

View File

@ -209,8 +209,7 @@ public abstract class AbstractIntegerDistribution implements IntegerDistribution
*/ */
private double checkedCumulativeProbability(int argument) private double checkedCumulativeProbability(int argument)
throws MathInternalError { throws MathInternalError {
double result = Double.NaN; double result = cumulativeProbability(argument);
result = cumulativeProbability(argument);
if (Double.isNaN(result)) { if (Double.isNaN(result)) {
throw new MathInternalError(LocalizedFormats throw new MathInternalError(LocalizedFormats
.DISCRETE_CUMULATIVE_PROBABILITY_RETURNED_NAN, argument); .DISCRETE_CUMULATIVE_PROBABILITY_RETURNED_NAN, argument);