Readability and Code Size

Unnecesary return statement

The last statement in a void method was a return statement, which should be omitted.

Solution: remove the statement.

Severity level: 4

Negated if statement

An if statement with two branches has a not operator as the top-level expression. The statement becomes easier to understand and slightly faster by switching the two branches and removing the negation.

Solution: remove the not operator and switch the two branches.

Severity level: 4