Skip to content
This repository was archived by the owner on Sep 21, 2020. It is now read-only.

Commit dd73151

Browse files
committed
1 parent 5356af7 commit dd73151

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/opower/unitsofmeasure/UnitJacksonModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import javax.measure.Unit;
2020

2121
/**
22-
* Configures Jackson to (de)serialize JScience Unit objects using their UCUM representation, since the actual objects don't
22+
* Configures Jackson to (de)serialize JSR 363 Unit objects using their UCUM representation, since the actual objects don't
2323
* translate well into JSON.
2424
*/
2525
public class UnitJacksonModule extends SimpleModule {
@@ -46,7 +46,7 @@ public void serialize(Unit unit, JsonGenerator jgen, SerializerProvider provider
4646
jgen.writeNull();
4747
}
4848
else {
49-
// Format the unit using the standard UCUM representation.
49+
// Format the unit using the UCUM representation.
5050
// The string produced for a given unit is always the same; it is not affected by the locale.
5151
// It can be used as a canonical string representation for exchanging units.
5252
String ucumFormattedUnit = UCUMFormat.getInstance(Variant.CASE_SENSITIVE).format(unit, new StringBuilder()).toString();

0 commit comments

Comments
 (0)