ADD_IGNORE_NULL

Examples:

		if (x != null) {
			col.add(x);
		}
		

Can be refactored as:

		CollectionUtils.addIgnoreNull(col, x)

library: Apache commons-collections
JavaDoc
Download

Home
List of rules