I am using LiveData and Databinding and I get 10s and 10s of warnings at compile time looking like:
warning: xxx.getValue() is a boxed field but needs to be un-boxed to execute bind:visibility. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap xxx.getValue() with safeUnbox() to prevent the warning
Is there a possibility to disable these warnings so that they won't show up when compiling? I don't want to wrap everything with safeUnbox().
Edit*: just to be clear. I am not asking how to handle the safeUnbox warning or what to do in order for the warning to not show up. I want to know if it is possible to disable the warning from showing up in my log output at compile time.