-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRelease Notes.txt
More file actions
56 lines (43 loc) · 2.09 KB
/
Copy pathRelease Notes.txt
File metadata and controls
56 lines (43 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Caliper Units of Measurement
RELEASE NOTES
(1) 1.2.7, February 3, 2024:
- Created a Maven repository at io.github.point85.caliper:
<dependency>
<groupId>io.github.point85</groupId>
<artifactId>caliper</artifactId>
<version>1.2.7</version>
</dependency>
- Upgraded gson to version 2.10.1
- Upgraded hamcrest to 2.2
- Removed unused Maven dependencies
(2) 1.2.8, June 10, 2025:
- Constant: fixed AVOGADRO typo
- MeasurementSytem: defined EPSILON for floating point precision; made ctor private
- Prefix: made prefixes a synchronized list; peta typo; used EPSILON in fromFactor() comparison
- Quantity: used EPSILON in equals() comparison; added BigDecimal case in createAmount(); checked for division by 0 in divide(double)
- UnitOfMeasure: synchronized setConversion()
(3) 1.3.0, February 16, 2026:
- Claude Sonnet 4.5 changes:
Performance Improvements
Prefix.java - Optimized prefix lookup:
Changed from O(n) linear search to O(1) HashMap lookup in fromName()
Added nameMap for fast name-based lookups
Made prefix list unmodifiable to prevent external modification
UnitOfMeasure.java - Eliminated unnecessary boxing:
Replaced Double.valueOf().compareTo() with Double.compare() in 4 locations
Added initial capacity to HashMap in multiplyOrDivide() method
Added initial capacity to Reducer's terms HashMap (16 elements)
Quantity.java - Optimized comparisons:
Replaced Double.valueOf().compareTo() with Double.compare() in compare() method
Added initial capacity to ArrayList in convert(List<UnitOfMeasure>) method
MeasurementSystem.java - Collection optimization:
Added initial capacity (32) to ArrayList in getUnitsOfMeasure() method
UnitType.java - Immutability improvement:
Made typeMap unmodifiable using Collections.unmodifiableMap()
Added initial capacity calculation for HashMap
Bug Fixes
Prefix.java - Null safety:
Added null check in fromName() method to prevent NullPointerException
UnitOfMeasure.java - Null safety in equals():
Added null checks for getAbscissaUnit() and getSymbol() to prevent NullPointerException
Improved defensive programming in equality checks