| <html> | |
| <body> | |
| Reports any access to the <b>java.util.Collections</b> | |
| fields <b>EMPTY_LIST</b>, <b>EMPTY_MAP</b> | |
| or <b>EMPTY_SET</b>. Those expressions can be replaced by method | |
| calls to <b>emptyList()</b>, | |
| <b>emptyMap()</b> and <b>emptySet()</b>. | |
| Such method calls prevent "unchecked" warnings by the compiler because the type parameters can be inferred. | |
| <p> | |
| This inspection only reports if the project or module is configured to use a | |
| language level of 5.0 or higher. | |
| <!-- tooltip end --> | |
| <p> | |
| </body> | |
| </html> |