[
https://issues.apache.org/jira/browse/YARN-7924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16361861#comment-16361861
]
Akira Ajisaka commented on YARN-7924:
-------------------------------------
In the following code, {{Collections.EMPTY_SET}} can be replaced with
{{Collections.emptySet()}} to avoid unchecked assignment.
{code:java}
public Set<String> getAllocationTags() {
return Collections.EMPTY_SET;
}{code}
> Fix javac warning in NMContainerStatus.java
> -------------------------------------------
>
> Key: YARN-7924
> URL: https://issues.apache.org/jira/browse/YARN-7924
> Project: Hadoop YARN
> Issue Type: Bug
> Reporter: Akira Ajisaka
> Priority: Minor
> Labels: newbie
>
> 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}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]