Compliance with JavaLib ArrayList-> Array switch