Lucian
Lucian

Reputation: 824

Defining findbugs detector using the existing plugins

I'm trying to figure out how could I implement a detector using findbugs.

Also I don't want to create a plugin since findbugs already has this functionality.

I need my detector to check if all the calls to ClassName.getConnection() are matched by ClassName.freeConnection().

Upvotes: 1

Views: 79

Answers (1)

Vasile
Vasile

Reputation: 134

I think I have your answer in this link:

https://vasileirimia.wordpress.com/2015/07/14/addind-custom-constraints-called-obligations-to-findbugs/

Good luck !

Upvotes: 1

Related Questions