Diamond operator - fixed violations on anonymous classes

Due to issue #270