[ 
https://issues.apache.org/jira/browse/SLIDER-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15381402#comment-15381402
 ] 

ASF subversion and git services commented on SLIDER-1157:
---------------------------------------------------------

Commit cfa66cabcab1caf3600bf8e854a19820148bb3cf in incubator-slider's branch 
refs/heads/develop from [~gsaha]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-slider.git;h=cfa66ca ]

SLIDER-1157 Code issues - integer handling issues


> 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
>            Assignee: Gour Saha
>         Attachments: SLIDER-1157.01.patch
>
>
> 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)

Reply via email to