Return an Empty Array or Collection Instead of a Null Value for Methods that Return an Array or Collection 

es.uniovi.reflection.analyses.cmu.met55


This rule detects statements returning the null literal in methods whose return type is an array or implements the java.util.Collection interface and encourages the programmer to use and empty collection or array instead.

Computational Reflection Research Group
05-08-2024 22:58
Reliability
Return Statement