This inspection reports any access to the java.util.Collections
fields EMPTY_LIST, EMPTY_MAP
or EMPTY_SET. Those expressions can be replaced by method
calls to emptyList(),
emptyMap() and emptySet().
Such method calls prevent javac "unchecked" warnings because any type parameters can be inferred.
For safety, this inspection is disabled unless the project uses JDK 5.0. |
New in 8, Powered by InspectionGadgets |