Groovy Deprecated Methods and Eclipse - sort

后端 未结 1 1420
盖世英雄少女心
盖世英雄少女心 2021-01-18 09:31

I\'ve got the following code which I wrote in groovy 1.8

someListOfLists.flatten().sort().unique()

I\'ve moved over to groovy 2.3.x, and ec

相关标签:
1条回答
  • 2021-01-18 10:17

    The deprecation warnings are due to the fact that Eclipse is mapping Groovy methods to the mostly deprecated DefaultGroovyMethods class, which was just replaced by many separate other classes such as StringGroovyMethods, ResourceGroovyMethods etc.

    It seems that in version 2.7.1 of the Groovy plugin, this was fixed... check your version of the plugin, maybe you just need to upgrade.

    If that does not solve the problem, unfortunately, unless you can make the Groovy plugin change the methods mapping, you won't be able to get rid of the warnings, as far as I know. In IntelliJ I have the same problem.

    0 讨论(0)
提交回复
热议问题