unitsofmeasurement / indriya

JSR 385 - Reference Implementation
Other
122 stars 42 forks source link

What's the purpose of BaseUnit#quantityType? #179

Closed filipvanlaenen closed 5 years ago

filipvanlaenen commented 5 years ago

The class BaseUnit has an attribute quantityType that can be set through one of the constructors.

However, I can't see that the attribute is used anywhere, and what purpose it would have.

Can it be removed?

keilw commented 5 years ago

It was an idea about preserving the quantity type at runtime, but it cannot be assigned in Java at the moment, so I think we can remove it till the Java platform could ever add reified generics?