Fixed warnings for fields in anonymous classes.