Merge pull request #70 from DevFactory/release/general-code-quality-fix-1

General code quality fix-1
This commit is contained in:
Roman Leventov
2016-02-13 18:17:08 +07:00
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();
}