hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-7924) Replace Collections.EMPTY_SET and EMPTY_MAP with emptySet() and emptyMap() when available
Date Tue, 13 Feb 2018 06:07:00 GMT

     [ https://issues.apache.org/jira/browse/YARN-7924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Akira Ajisaka updated YARN-7924:
--------------------------------
    Description: The use of {{Collections.EMPTY_SET}} and {{Collections.EMPTY_MAP}} often
causes unchecked assignment and it should be replaced with {{Collections.emptySet()}} and
{{Collections.emptyMap()}}.   (was: There is a warning in NMContainerStatus.java when compiling
the source code and it can be fixed easily.
{noformat}
[WARNING] /home/centos/git/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/NMContainerStatus.java:
/home/centos/git/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/NMContainerStatus.java
uses unchecked or unsafe operations.{noformat})

> Replace Collections.EMPTY_SET and EMPTY_MAP with emptySet() and emptyMap() when available
> -----------------------------------------------------------------------------------------
>
>                 Key: YARN-7924
>                 URL: https://issues.apache.org/jira/browse/YARN-7924
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Akira Ajisaka
>            Priority: Minor
>
> The use of {{Collections.EMPTY_SET}} and {{Collections.EMPTY_MAP}} often causes unchecked
assignment and it should be replaced with {{Collections.emptySet()}} and {{Collections.emptyMap()}}. 



--
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