hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weiwei Yang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-7995) Remove unnecessary boxings and unboxings from PlacementConstraintParser.java
Date Mon, 05 Mar 2018 03:53:00 GMT

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

Weiwei Yang commented on YARN-7995:
-----------------------------------

Committed to trunk, thanks [~Sen Zhao] and [~ajisakaa].

> Remove unnecessary boxings and unboxings from PlacementConstraintParser.java
> ----------------------------------------------------------------------------
>
>                 Key: YARN-7995
>                 URL: https://issues.apache.org/jira/browse/YARN-7995
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Akira Ajisaka
>            Assignee: Sen Zhao
>            Priority: Minor
>              Labels: newbie
>             Fix For: 3.2.0
>
>         Attachments: YARN-7995.001.patch
>
>
> {code}
>       String maxCardinalityStr = resetElements.pop();
>       Integer max = toInt(maxCardinalityStr);
>       String minCardinalityStr = resetElements.pop();
>       Integer min = toInt(minCardinalityStr);
> {code}
> {{toInt(String)}} does not return null, so {{Integer}} should be replaced with {{int}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message