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

----


---

Reply via email to