From 06e3522d4a844a1e4054fdec7d91bf9ab0acf211 Mon Sep 17 00:00:00 2001 From: Faisal Hameed Date: Fri, 12 Feb 2016 09:45:35 +0500 Subject: [PATCH] Fixing squid:S1596,squid:LowerCaseLongSuffixCheck --- .../openhft/chronicle/hash/impl/util/math/Precision.java | 2 +- .../xstream/converters/AbstractChronicleMapConverter.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/openhft/chronicle/hash/impl/util/math/Precision.java b/src/main/java/net/openhft/chronicle/hash/impl/util/math/Precision.java index 6e8f2aef3..333b73319 100644 --- a/src/main/java/net/openhft/chronicle/hash/impl/util/math/Precision.java +++ b/src/main/java/net/openhft/chronicle/hash/impl/util/math/Precision.java @@ -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 { diff --git a/src/main/java/net/openhft/xstream/converters/AbstractChronicleMapConverter.java b/src/main/java/net/openhft/xstream/converters/AbstractChronicleMapConverter.java index 76ff66f08..197c6bf07 100644 --- a/src/main/java/net/openhft/xstream/converters/AbstractChronicleMapConverter.java +++ b/src/main/java/net/openhft/xstream/converters/AbstractChronicleMapConverter.java @@ -119,14 +119,14 @@ class AbstractChronicleMapConverter 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(); }