Find all unused variable

前端 未结 4 1317
鱼传尺愫
鱼传尺愫 2021-02-08 21:36

Normally it\'s easy to see unused variables in Netbeans, just a grey squiggly line.

But how would I find all of these unused variables in my project or of a single clas

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-08 22:24

    PMD will find unused local variables for you (among many other things). There's a NetBeans plugin that I give installation instructions for here (Warning: Shameless Plug, that links to my blog).

提交回复
热议问题