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 an empty collection or array instead.

Computational Reflection Research Group
12-03-2025 17:14
Reliability
Return Statement