[ https://issues.apache.org/jira/browse/FLINK-8661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16441736#comment-16441736 ]
ASF GitHub Bot commented on FLINK-8661: --------------------------------------- GitHub user zhangminglei opened a pull request: https://github.com/apache/flink/pull/5864 [FLINK-8661] Replace Collections.EMPTY_MAP with Collections.emptyMap() ## What is the purpose of the change The use of Collections.EMPTY_SET and Collections.EMPTY_MAP often causes unchecked assignment. It should be replaced with Collections.emptySet() and Collections.emptyMap() . ## Brief change log Change Collections.EMPTY_MAP and Collections.EMPTY_LIST to Collections.emptyList() & Collections.emptyMap(). ## Verifying this change This change is a trivial rework / code cleanup without any test coverage. You can merge this pull request into a Git repository by running: $ git pull https://github.com/zhangminglei/flink flink-8661 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/5864.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #5864 ---- commit f021149aa73576a9a9fd05ba00fcf7e5d1901318 Author: zhangminglei <zml13856086071@...> Date: 2018-04-18T01:24:57Z [FLINK-8661] Replace Collections.EMPTY_MAP with Collections.emptyMap() ---- > Replace Collections.EMPTY_MAP with Collections.emptyMap() > --------------------------------------------------------- > > Key: FLINK-8661 > URL: https://issues.apache.org/jira/browse/FLINK-8661 > Project: Flink > Issue Type: Bug > Reporter: Ted Yu > Assignee: mingleizhang > Priority: Minor > > The use of Collections.EMPTY_SET and Collections.EMPTY_MAP often causes > unchecked assignment. It should be replaced with Collections.emptySet() and > Collections.emptyMap() . -- This message was sent by Atlassian JIRA (v7.6.3#76005)