diff options
author | Adrien Hopkins <masterofnumbers17@gmail.com> | 2019-11-26 20:53:27 -0500 |
---|---|---|
committer | Adrien Hopkins <masterofnumbers17@gmail.com> | 2019-11-26 20:53:27 -0500 |
commit | bff8f363ce5e2ca84da1d57a470f0648c4b338e6 (patch) | |
tree | 79e229cb9648c288aa8fcb5beb731c04ecf82573 /src/org/unitConverter/math | |
parent | 7a0f427727db7fcafd389e1e2c4b3ab207acd5c2 (diff) |
Prefixes can now have names.
Diffstat (limited to 'src/org/unitConverter/math')
-rw-r--r-- | src/org/unitConverter/math/ObjectProduct.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/unitConverter/math/ObjectProduct.java b/src/org/unitConverter/math/ObjectProduct.java index 29d0f6e..bf00647 100644 --- a/src/org/unitConverter/math/ObjectProduct.java +++ b/src/org/unitConverter/math/ObjectProduct.java @@ -92,8 +92,8 @@ public final class ObjectProduct<T> { * @since 2019-10-16
*/
private ObjectProduct(final Map<T, Integer> exponents) {
- this.exponents = Collections.unmodifiableMap(ConditionalExistenceCollections
- .conditionalExistenceMap(new HashMap<>(exponents), e -> !Integer.valueOf(0).equals(e.getValue())));
+ this.exponents = Collections.unmodifiableMap(ConditionalExistenceCollections.conditionalExistenceMap(exponents,
+ e -> !Integer.valueOf(0).equals(e.getValue())));
}
/**
|