[java-inspections] SequencedCollectionMethodCanBeUsedInspection should ignore named constants

#IDEA-367961 fixed


Merge-request: IJ-MR-155974
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com>

GitOrigin-RevId: aa16bf0758ef523f21c0eeaf73e27e418fc0cd89
This commit is contained in:
Bartek Pacia
2025-02-25 12:59:44 +00:00
committed by intellij-monorepo-bot
parent 15d703aa85
commit bb7efcadba
4 changed files with 44 additions and 3 deletions
@@ -1244,6 +1244,7 @@ negated.if.else.ignore.negated.zero.option=Ignore '!= 0' comparisons
negated.if.else.invert.quickfix=Invert 'if' condition
overly.complex.boolean.expression.max.terms.option=Maximum number of terms:
pointless.boolean.expression.ignore.option=Ignore named constants in determining pointless expressions
sequenced.collection.method.can.be.used.ignore.option=Ignore named constants used as arguments
simplifiable.conditional.expression.problem.descriptor=<code>{1}</code> can be simplified to ''{0}'' #loc
switch.statement.density.min.option=Minimum density of branches: %
switch.statement.density.problem.descriptor=<code>#ref</code> branch density is too low ({0}%) #loc
@@ -2538,4 +2539,4 @@ inspection.redundant.embedded.expression.fix.family.name=Inline embedded express
auto.closeable.resource.quickfix.preview=Add method <code>{0}</code> to the list of ignored methods
inspection.while.can.be.replaced.with.do.while.display.name='while' can be replaced with 'do while'
inspection.while.can.be.replaced.with.do.while.message=Replace 'while' with 'do while'
inspection.while.can.be.replaced.with.do.while.family.name=Replace 'while' with 'do while'
inspection.while.can.be.replaced.with.do.while.family.name=Replace 'while' with 'do while'