What value for @SuppressWarnings do I use to suppress the “Can be private” warning?

It is best to simply disable this inspection, either for your whole project or for a specific class. Put your cursor on the warning and press Alt + Enter to bring up the following menu, which allows you to disable it:

Disable inspection

If you really want to use @SuppressWarnings you can choose the Suppress for class option from the dialog above. This will add the following annotation:

@SuppressWarnings("WeakerAccess")

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)