Replaced not-working @SuppressWarnings by an unnecessary assert()