Fixing squid:S1596,squid:LowerCaseLongSuffixCheck

This commit is contained in:
Faisal Hameed
2016-02-12 09:45:35 +05:00
parent 28045975a1
commit 06e3522d4a
2 changed files with 4 additions and 4 deletions
@@ -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();
}