Why is the Bigdecimal(double d) construction still around?

后端 未结 3 441
广开言路
广开言路 2020-12-11 15:20

I\'ve noticed substantial pain over this constructor (even here on Stack Overflow). People use it even though the documentation clearly states:

Th

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-11 15:57

    Deprecation is deprecated. Parts of APIs are only marked deprecated in exceptional cases.

    So, run FindBugs as part of your build process. FindBugs has a detector PlugIn API and is also open source (LGPL, IIRC).

提交回复
热议问题