Addressed a number format exception being thrown in AuctionUtil#parseAmount because the amount string was being validated via Double#parseDouble which accepts the string "Infinity", but the actual amount was set via Integer#parseInt which only accepts decimal numbers.
This was fixed by creating a isPositiveInt method that validates via Integer#parseInt and using that in AuctionUtil#parseAmount. The same fix was applied to auction time which should be validated as an integer and not as a double.
Addressed a number format exception being thrown in
AuctionUtil#parseAmount
because theamount
string was being validated viaDouble#parseDouble
which accepts the string "Infinity", but the actual amount was set viaInteger#parseInt
which only accepts decimal numbers.This was fixed by creating a
isPositiveInt
method that validates viaInteger#parseInt
and using that inAuctionUtil#parseAmount
. The same fix was applied to auction time which should be validated as an integer and not as a double.