Gour Saha created SLIDER-1157: --------------------------------- Summary: Code issues - integer handling issues Key: SLIDER-1157 URL: https://issues.apache.org/jira/browse/SLIDER-1157 Project: Slider Issue Type: Bug Components: other Affects Versions: Slider 0.91 Reporter: Gour Saha
Following 2 issues needs to be addressed - h4. slider-core/src/main/java/org/apache/slider/core/conf/MapOperations.java {code} 325 long totalMinutes = days * 24 * 60 + hours * 24 + minutes; {code} overflow_before_widen: Potentially overflowing expression hours * 24 with type int (32 bits, signed) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type long (64 bits, signed) h4. slider-core/src/main/java/org/apache/slider/client/SliderClient.java {code} 1709 if (clusterComponentInstances 1710 .get(clientComponentInstanceEntry.getKey()) == clientComponentInstanceEntry 1711 .getValue()) { {code} defect: Suspicious comparison of Integer references -- This message was sent by Atlassian JIRA (v6.3.4#6332)