Code warning - return value of method never used

Hi,

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?

Regards

Adam

0
1 comment
Official comment

See https://www.jetbrains.com/help/idea/suppressing-inspections.html about how you could suppress the inspection. It is Java | Declaration redundancy | Method can be void inspection.

P.S. please use this forum: https://intellij-support.jetbrains.com/hc/en-us/community/topics/200382555for questions about IntelliJ IDEA usage.

Please sign in to leave a comment.