mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fixing squid:S1596,squid:LowerCaseLongSuffixCheck
This commit is contained in:
@@ -69,7 +69,7 @@ class Precision {
|
||||
final long yInt = Double.doubleToRawLongBits(y);
|
||||
|
||||
final boolean isEqual;
|
||||
if (((xInt ^ yInt) & SGN_MASK) == 0l) {
|
||||
if (((xInt ^ yInt) & SGN_MASK) == 0L) {
|
||||
// number have same sign, there is no risk of overflow
|
||||
isEqual = Math.abs(xInt - yInt) <= maxUlps;
|
||||
} else {
|
||||
|
||||
@@ -119,14 +119,14 @@ class AbstractChronicleMapConverter<K, V> implements Converter {
|
||||
switch (reader.getNodeName()) {
|
||||
|
||||
case "java.util.Collections$EmptySet":
|
||||
return (E) Collections.EMPTY_SET;
|
||||
return (E) Collections.emptySet();
|
||||
|
||||
case "java.util.Collections$EmptyList":
|
||||
return (E) Collections.EMPTY_LIST;
|
||||
return (E) Collections.emptyList();
|
||||
|
||||
case "java.util.Collections$EmptyMap":
|
||||
case "java.util.Collections.EmptyMap":
|
||||
return (E) Collections.EMPTY_MAP;
|
||||
return (E) Collections.emptyMap();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user