isEmpty() should be used to check empty collections instead of checking size()
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Hi,
Could anyone help me write a custom rule in Java for SonarQube to Use IsEmpty () to check empty collections instead of size () == 0 or size ()! = 0.