What is the clearest way to deprecate a package in Java?

前端 未结 6 475
孤独总比滥情好
孤独总比滥情好 2020-12-15 03:19

I\'m working on a new codebase and migrating the system to a new framework.

There are a number of packages that I would like to deprecate, just to make it very clear

6条回答
  •  有刺的猬
    2020-12-15 03:29

    For those who came later...
    My solution with IDEA "Replace in Path"

    Text to find: (public|protected)+(\s)(abstract)(\s)(static)(\s)(final)(\s)*(class|interface|enum|Enum)
    Replace with: @Deprecated\n\$1 \$3 \$5 \$7 \$9
    Options: (select) Regular expressions
    Directory: {Choose dir}

提交回复
热议问题