...
Avoid the possibility of side effects in assertions.
Code Block | ||
---|---|---|
| ||
void process(int index) {
boolean nullsRemoved = names.remove(null);
assert nullsRemoved; /* no side effect */
/* ... */
}
|
...
...
Avoid the possibility of side effects in assertions.
Code Block | ||
---|---|---|
| ||
void process(int index) {
boolean nullsRemoved = names.remove(null);
assert nullsRemoved; /* no side effect */
/* ... */
}
|
...