gablans / unitsofmeasure

Automatically exported from code.google.com/p/unitsofmeasure
0 stars 0 forks source link

Remove UnsupportedException from asType(Class) javadoc #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The Unit.asType(Class) method is designed to throw ClassCastException if the 
unit can not be casted to a unit of the given quantity class. However the 
Javadoc additionally said "throws UnsupportedOperationException if the given 
type is not recognized". If the type is not recognized, the method can 
obviously not cast to that type, so the ClassCastException should be 
sufficient. Consequently I suggest to remove that sentence from Javadoc.

Original issue reported on code.google.com by martdesr...@gmail.com on 8 Jan 2013 at 2:41

GoogleCodeExporter commented 8 years ago
Removed UnsupportedOperationException from javadoc in revision 206.

Original comment by martdesr...@gmail.com on 8 Jan 2013 at 3:00