remove useless local initialization before assignment
This commit is contained in:
parent
02dd98a045
commit
7c12a85bf8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue