Corrected CheckStyle violations (anonymous inner-class length)