Java: report implicit assignment or return of record components with mutable type (IDEA-325828)

GitOrigin-RevId: f7b7091c291db33468bb60b22cab01dc11aca586
This commit is contained in:
Bas Leijdekkers
2024-12-29 13:41:59 +00:00
committed by intellij-monorepo-bot
parent 24557b8338
commit 2d7e9aec9c
4 changed files with 74 additions and 20 deletions
@@ -2184,7 +2184,8 @@ redundant.explicit.var.type.display.name=Local variable type can be omitted
variable.type.can.be.explicit.display.name=Variable type can be explicit
assignment.or.return.of.field.with.mutable.type.display.name=Assignment or return of field with mutable type
assignment.of.field.with.mutable.type.problem.descriptor=Assignment to {0} field ''{1}'' from parameter <code>#ref</code> #loc
return.of.field.with.mutable.type.problem.descriptor=Return of {0} field <code>{1}</code> #loc
return.of.field.with.mutable.type.problem.descriptor=Return of {0} field <code>#ref</code> #loc
assignment.and.return.of.mutable.record.component=Implicit {0, choice, 1#assignment|2#return|3#assignment and return} of {1} record component <code>#ref</code> #loc
ignore.private.methods.option=Ignore assignments in and returns from private methods
inspection.replace.on.literal.display.name=Replacement operation has no effect