## Why is this an issue?

Since `assert` statements aren’t executed by default (they must be enabled with JVM flags) developers should never rely on their execution the evaluation of any logic required for correct program function.

### Noncompliant code example

    assert myList.remove(myList.get(0));  // Noncompliant

### Compliant solution

    boolean removed = myList.remove(myList.get(0));
    assert removed;

## Resources

- CERT, EXP06-J. - Expressions used in assertions must not produce side effects