Can findbugs detect unused public methods

后端 未结 8 1626
死守一世寂寞
死守一世寂寞 2020-12-19 04:45

Is it possible to detect unused methods in a source tree using FindBugs? I see some posts on SO where users are claiming to do that, some others asking how to do this in FB

8条回答
  •  爱一瞬间的悲伤
    2020-12-19 05:24

    Well, since you want to go down this route despite warnings from the others who've responded :), you can copy and modify the UPM detector to do what you need.

    Its really simple to write a detector for FindBugs (especially when you've got a great starting point). Read this to get you started

提交回复
热议问题