unitsofmeasurement / indriya

JSR 385 - Reference Implementation
Other
118 stars 40 forks source link

285: have Quantity amounts narrowed on construction #286

Closed andi-huber closed 4 years ago

andi-huber commented 4 years ago

this is done in the default NumberSystem implementation users can plugin their own NumberSystem if needed

our default narrow(Number) implementation now checks for non-finite number values and throws an IllegalArgumentException if such is detected

in reference to issue #285


This change is Reviewable