Diamond operator - fixed violations on anonymous classes