[Java] Rule S3077 should not apply to references to immutable objects

Hi @Nicolas_Peru,

good to know that the implementation already considers well known immutable types.

What do you think about my suggestion about enums? I’d argue that enum constants are (or at least should be) immutable.

2 Likes