Code warning - return value of method never used


I have a builder on a pojo using the IntelliJ pattern from the Generate functionality. 

In one place I am using the builder method without chaining them together, so the return value is not used. 

IntelliJ is flagging this up with a "return value of method never used".

I would like to suppress or disable this warning but I can't find it in the the Settings. 

Any advice?



1 comment
Comment actions Permalink
Official comment

See about how you could suppress the inspection. It is Java | Declaration redundancy | Method can be void inspection.

P.S. please use this forum: questions about IntelliJ IDEA usage.

Please sign in to leave a comment.