[java-inspection] IDEA-310469 Java inspection for "Pattern variable can be used" does not find all cases

- support more cases

GitOrigin-RevId: 28301b79d4c4acd343a35474d1ab44096dcea8cd
This commit is contained in:
Mikhail Pyltsin
2024-04-09 15:49:16 +00:00
committed by intellij-monorepo-bot
parent 4100e96bfd
commit 00351758c5
9 changed files with 286 additions and 26 deletions
@@ -2334,11 +2334,16 @@ inspection.enhanced.for.with.record.pattern.can.be.used.maximum.depth.disabled=D
inspection.pattern.variable.can.be.used.display.name=Pattern variable can be used
inspection.pattern.variable.can.be.used.message=Variable ''{0}'' can be replaced with pattern variable
inspection.pattern.variable.can.be.used.instead.of.cast.message=Cast expression can be replaced with pattern variable
inspection.pattern.variable.can.be.used.fix.family.name=Replace with pattern variable
inspection.pattern.variable.instead.of.cast.can.be.used.fix.family.name=Replace cast expressions with pattern variable
inspection.pattern.variable.can.be.used.fix.name=Replace ''{0}'' with pattern variable
inspection.pattern.variable.can.be.used.existing.message=Existing pattern variable ''{0}'' can be used instead of ''{1}''
inspection.pattern.variable.can.be.used.existing.cast.message=Existing pattern variable ''{0}'' can be used instead of cast expression
inspection.pattern.variable.can.be.used.existing.fix.family.name=Replace with existing pattern variable
inspection.pattern.variable.can.be.used.existing.fix.name=Replace ''{0}'' with existing pattern variable ''{1}''
inspection.pattern.variable.instead.of.cast.can.be.used.existing.fix.name=Replace cast expression with existing pattern variable ''{0}''
inspection.pattern.variable.can.be.used.report.cast.only=Report cast expressions which can be replaced with new pattern variables
inspection.cast.can.be.replaced.with.variable.display.name=Cast can be replaced with variable
inspection.cast.can.be.replaced.with.variable.message=Variable ''{0}'' can be used instead of ''{1}''